将当前的分支和远程分支合并:
git pull <remote> <branch>
操作如下:
1、git branch -a:查看本地和远程的所有分支,包括master分支
f3x38h-branch
master
* wusc1
remotes/origin/HEAD -> origin/master
remotes/origin/f3x38h-branch
remotes/origin/master
2、git pull origin f3x38h-branch:将远程分支 remotes/origin/f3x38h-branch和当前分支wusc1合并
如果要为当前分支wusc1,设置自动跟踪变化,可以进行如下设置(If you wish to set tracking information for this branch you can do so with:)
git branch --set-upstream-to=origin/<branch> wusc1,
如:git branch --set-upstream-to=origin/f3x38h-branch wusc1,