Git 命令从远程拉取的语法是什么?
What is syntax for the Git command to pull from a remote?
Git 命令使用远程从 GitHub 存储库拉取的语法是什么?
我在 Windows 8.1 上使用 Git Bash。
我想从存储库更新我的本地文件。我有两个遥控器——原点和上游。我想从上游更新。上游的分支,是master。
问:如何指定要从中拉取的远程和分支?
我没有在文档中看到它!
如果我输入
$git 向上游拉动
它回应..
"You asked to pull from the remote 'upstream', 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."
我怎么能错过这么常见的东西呢? !!
尝试:
git pull upstream master
从名为 upstream
的远程 master
分支中拉取
Git 命令使用远程从 GitHub 存储库拉取的语法是什么?
我在 Windows 8.1 上使用 Git Bash。
我想从存储库更新我的本地文件。我有两个遥控器——原点和上游。我想从上游更新。上游的分支,是master。
问:如何指定要从中拉取的远程和分支?
我没有在文档中看到它!
如果我输入 $git 向上游拉动
它回应.. "You asked to pull from the remote 'upstream', 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."
我怎么能错过这么常见的东西呢? !!
尝试:
git pull upstream master
从名为 upstream
master
分支中拉取