请..有人解释一下吗?所以...... git pull不起作用。然后我指定要拉的分支。
git pull development
fatal: 'development' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
ubuntu@ubuntu:~/workspace/myrepo git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.development.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
If you often merge with the same branch, you may want to
use something like the following in your configuration file:
[branch "development"]
remote = <nickname>
merge = <remote-ref>
[remote "<nickname>"]
url = <url>
fetch = <refspec>
See git-config(1) for details.
git branch
* development
master
ubuntu@ubuntu:~/workspace/myrepo$ git pull development
fatal: 'development' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
答案 0 :(得分:9)
如果要从远程服务器上的development
分支拉出,则必须明确指定它。像这样(假设所需的遥控器是origin
):
git pull origin development
否则,git会尝试从development
遥控器(这不是预期的行为)拉出来。