3 回答

TA貢獻1805條經(jīng)驗 獲得超9個贊
你不知道,見下文
git config --global push.default current
git checkout -b my-new-branch
git push -u

TA貢獻1966條經(jīng)驗 獲得超4個贊
git push
> git checkout -b new_branch Switched to a new branch 'new_branch' > git push fatal: The current branch new_branch has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin new_branch
git push
-u
--set-upstream
git push
- 3 回答
- 0 關注
- 594 瀏覽
添加回答
舉報