-2

请..有人可以解释一下吗?所以...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
4

1 回答 1

9

如果要从development远程服务器上的分支中提取,则必须明确指定它。像这样(假设所需的遥控器是origin):

git pull origin development

否则,git 将尝试从development远程提取(这不是预期的行为)。

于 2013-05-24T23:47:34.883 回答