IDEA無法pull程式碼到本地,Can't Update No tracked branch configured for branch master or the branch doesn't exist.
阿新 • • 發佈:2022-01-07
pull自己程式碼到本地時,死活pull不了,出現報錯資訊:
Can't Update
No tracked branch configured for branch master or the branch doesn't exist.
To make your branch track a remote branch call, for example,
git branch --set-upstream-to=origin/master master
原因:看網路很多都有解釋,簡單說就是不知道pull那個,但是我就一個專案分支,因為是個人專案,所以沒做分支,就挺離譜的。
解決方案:
在專案目錄下開啟git視窗,輸入
git branch --set-upstream-to=origin/master
附上參考的大佬原站:
IDEA新建專案提交到git倉庫時報錯:Can't Update No tracked branch configured for branch master or the branch
解決git更新時提示Can't Update No tracked branch configured for branch_u012556114