1. 程式人生 > >git 設定預設分支

git 設定預設分支

例如要把push和pull的預設分支設定為master,那麼:

git branch --set-upstream-to=origin/master master

跟別有過一次pull、push操作後執行。