How to push multiple branches from multiple commits?

后端 未结 5 727
情歌与酒
情歌与酒 2020-12-24 05:06

I never used git before GitHub released the Windows app, so I\'ve never used it in command line.

So here\'s my situation:
I did some co

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 05:39

    If you want to push several specific branches (for example branch1 and branch2) you can use:

    git push origin branch1 branch2 
    

    In Git >= 2.4 this operation can be done atomically (i.e. if it fails to push any of the branches specified nothing will be pushed):

    git push --atomic origin branch1 branch2 
    

提交回复
热议问题