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

前端 未结 4 1692
梦如初夏
梦如初夏 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:34

    A fast forward means that a commit has already happened and is stored in your log, and your HEAD (pointer) has moved forward to that commit. You can check out merge behavior here

提交回复
热议问题