Why does git merge sometimes create a commit, sometimes does not?

前端 未结 4 1699
梦如初夏
梦如初夏 2021-01-30 04:45

When I do git merge from another branch to current workspace, git sometimes makes a new commit:

Merge remote-tracking branch xxx into xxx

4条回答
  •  日久生厌
    2021-01-30 05:43

    You can use the --no-ff option to force a new commit to avoid the fast-forward.

提交回复
热议问题