Changing the Git remote 'push to' default

后端 未结 11 1926
失恋的感觉
失恋的感觉 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:15

    You can easily change default remote for branches all at once simple using this command

    git push -u  --all
    

提交回复
热议问题