Changing the Git remote 'push to' default

后端 未结 11 1920
失恋的感觉
失恋的感觉 2020-12-04 05:35

I want to change the Git default remote branch destination so I could just

git push

Instead of:

git push upstream
         


        
11条回答
  •  感情败类
    2020-12-04 06:03

    You can use git push -u to set the default upstream. See the documentation for git push for more details.

提交回复
热议问题