Git merge without auto commit

后端 未结 5 551
轻奢々
轻奢々 2020-12-02 03:36

Is it possible to do a git merge, but without a commit?

\"man git merge\" says this:

With --no-commit perform the merge but pretend the          


        
5条回答
  •  星月不相逢
    2020-12-02 04:20

    Note the output while doing the merge - it is saying Fast Forward

    In such situations, you want to do:

    git merge v1.0 --no-commit --no-ff
    

提交回复
热议问题