Git merge without auto commit

后端 未结 5 552
轻奢々
轻奢々 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:09

    If you only want to commit all the changes in one commit as if you typed yourself, --squash will do too

    $ git merge --squash v1.0
    $ git commit
    

提交回复
热议问题