Changing the Git remote 'push to' default

后端 未结 11 1919
失恋的感觉
失恋的感觉 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 05:56

    Working with Git 2.3.2 ...

    git branch --set-upstream-to myfork/master
    

    Now status, push and pull are pointed to myfork remote

提交回复
热议问题