Git fast forward VS no fast forward merge

后端 未结 4 753
梦毁少年i
梦毁少年i 2020-11-29 15:18

Git merge allow us to perform fast forward and no fast fast forward branch merging. Any ideas when to use fast forward merge and when to use no fast forward merge?

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 16:11

    It is possible also that one may want to have personalized feature branches where code is just placed at the end of day. That permits to track development in finer detail.

    I would not want to pollute master development with non-working code, thus doing --no-ff may just be what one is looking for.

    As a side note, it may not be necessary to commit working code on a personalized branch, since history can be rewritten git rebase -i and forced on the server as long as nobody else is working on that same branch.

提交回复
热议问题