git pull—下载与合并
命令:git pull <远程仓库名> <远程分支名>:<本地分支名>本地分支名>远程分支名>远程仓库名>
命令:git pull remoteRepo remoteBranch:localBranch
说明:从远程仓库remoteRepo获取分支remoteBranch并合并到localBranch。远程分支名和本地分支名根据具体情况可省略。
相当于:git fetch && git merge
git pull remoteRepo
命令:git pull remoteRepo
说明:拉取远程仓库remoteRepo的master分支并合并到本地的当前分支。
git pull -r
命令:git pull remoteRepo remoteBranch:localBranch -r
说明:同–rebase,相当于 git fetch && git rebase。使用变基操作取代合并操作以合入修改
