git pull error

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git pull error相关的知识,希望对你有一定的参考价值。

在图形界面中,执行拉取操作时,出现下面的错误。

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
参考:
https://stackoverflow.com/questions/4847101/git-which-is-the-default-configured-remote-for-branch

以上是关于git pull error的主要内容,如果未能解决你的问题,请参考以下文章

git pull 报错 error: cannot pull with rebase: Your index contains uncommitted changes.

git pull 报错 error: cannot pull with rebase: Your index contains uncommitted changes.

git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).(代码片

git pull遇到错误:error: Your local changes to the following files would be overwritten by merge:

git pull遇到错误:error: Your local changes to the following files would be overwritten by merge:

git pull遇到错误:error: Your local changes to the following files would be overwritten by merge: