从远程提取分支的更改

时间:2020-02-26 17:06:16

标签: git github git-branch git-pull

我目前正在与同一分支机构的其他2位工程师合作。我们正在使用单独的控制器(或只是单独的文件),我无法使用git pull origin/<Branch>用队友的提交更新分支。 显示以下错误:

fatal: 'origin/<Branch>' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我如何提取队友的更改?

P.S。不同工程师在同一分支上工作是一种好习惯吗?

1 个答案:

答案 0 :(得分:1)

尝试git pull origin <Branch>(否/),这就是git-scm.com/docs/git-pull中显示的语法。

如果有关“来源”的错误仍然存​​在,请尝试git remote -v检查您所指的URL是否确实缩写为“来源”或可能有错字。