Git出現There is no tracking information for the current branch提示的解決辦法


  參考:https://blog.csdn.net/sinat_36246371/article/details/79738782

  在執行git pull的時候,提示當前branch沒有跟蹤信息:

There is no tracking information for the current branch

  

 

   對於這種情況有兩種解決辦法,就比如說要操作master吧,一種是直接指定遠程master:

git pull origin master

  另外一種方法就是先指定本地master到遠程的master,然后再去pull:

git branch --set-upstream-to=origin/master master
git pull

  


免責聲明!

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



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