git執行pull命令時,報錯


在圖形界面中,執行拉取操作時,出現下面的錯誤。

You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.

 

解決辦法:

Edit your .git/config

[branch "master"]
  remote = origin
  merge = refs/heads/master

 

Now you can simply git push and git pull.

 

參考地址:http://stackoverflow.com/questions/4847101/git-which-is-the-default-configured-remote-for-branch


免責聲明!

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



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