How to use git merge --squash?

后端 未结 13 1431
夕颜
夕颜 2020-11-22 05:41

I have a remote Git server, here is the scenario which I want to perform:

  • For each bug/feature I create a different Git branch

  • I keep on com

13条回答
  •  渐次进展
    2020-11-22 06:20

    if you get error: Committing is not possible because you have unmerged files.

    git checkout master
    git merge --squash bugfix
    git add .
    git commit -m "Message"
    

    fixed all the Conflict files

    git add . 
    

    you could also use

    git add [filename]
    

提交回复
热议问题