Can't update: no tracked branch No tracked branch configured for branch dev.


1.git pull 命令出現以下錯誤

$ 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> dev

2.按照提示設置

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

3.再 git pull 時提示成功

$ git pull Already up-to-date.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM