Default behavior of “git push” without a branch specified

前端 未结 12 1340
眼角桃花
眼角桃花 2020-11-22 05:32

I use the following command to push to my remote branch:

git push origin sandbox

If I say

git push origin

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 06:01

    I just committed my code to a branch and pushed it to github, like this:

    git branch SimonLowMemoryExperiments
    git checkout SimonLowMemoryExperiments
    git add .
    git commit -a -m "Lots of experimentation with identifying the memory problems"
    git push origin SimonLowMemoryExperiments
    

提交回复
热议问题