How can multiple people contribute to resolving conflicts during a large DVCS rebase operation?

前端 未结 1 1198
天涯浪人
天涯浪人 2021-02-04 14:34

A rebase of a very long-lived topic branch can be quite painful and take hours or days of work for one person. How can a second (or third) person contribute to the rebasing effo

相关标签:
1条回答
  • 2021-02-04 15:20

    turn on rerere

    git config --global rerere.enabled 1
    git config --global rerere.autoupdate true
    

    whenever you resolve a conflict, the resolution will be recorded. Now you have to share it:

    Set up a symlink to the .git/rr-cache directory. Initialize that as a repository. Have the other devs do that.

    Now you can share the resolutions across the team via this resolution repository.

    here is more on rerere: http://progit.org/2010/03/08/rerere.html

    You may also rethink your strategy of rebasing. Merging is a better option for certain situations.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题