解決無法Git的問題:There is no tracking information for the current branch. Please specify which branch...

錯誤提示

[root@vps project]# git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.

See git-pull(1) for details
    git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
    git branch --set-upstream-to=origin/<branch> master

 

解決步驟

輸入

git branch --set-upstream-to=origin/master
git remote add origin 你的倉庫地址例如[email protected]:xxx/yyy.git
git pull

 

示意圖

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章