1. 程式人生 > 其它 >IDEA無法pull程式碼到本地,Can't Update No tracked branch configured for branch master or the branch doesn't exist.

IDEA無法pull程式碼到本地,Can't Update No tracked branch configured for branch master or the branch doesn't exist.

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

作者:Ya 出處:https://www.cnblogs.com/1463490Ya/ 本文版權歸作者和部落格園共有,歡迎轉載,但未經作者同意必須在文章頁面給出原文連線,否則保留追究法律責任的權利。