WANGPENGAH+Administrator@wangpengah MINGW64 /d/workspace/mwclient (master)
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=<remote>/<branch> master

EXAMPLES
-
Update the remote-tracking branches for the repository you cloned from, then merge one of them into your current branch:
$ git pull $ git pull origin
Normally the branch merged in is the HEAD of the remote repository, but the choice is determined by the branch.<name>.remote and branch.<name>.merge options; see git-config(1) for details.
-
Merge into the current branch the remote branch
next:$ git pull origin next
This leaves a copy of
nexttemporarily in FETCH_HEAD, and updates the remote-tracking branchorigin/next. The same can be done by invoking fetch and merge:$ git fetch origin $ git merge origin/next
If you tried a pull which resulted in complex conflicts and would want to start over, you can recover with git reset.
在Git中,当尝试`git pull`时遇到没有跟踪信息的情况,可以使用`git branch --set-upstream-to=<remote>/<branch> master`来设置跟踪远程分支。本文通过示例介绍了如何更新远程追踪分支并将其合并到当前工作分支。
2794

被折叠的 条评论
为什么被折叠?



