我现在开始玩 Git 了,我有点困惑。对我来说,做同样的事有很多选择。我现在的问题是,以下命令之间的区别是什么:
另外,哪一个更适用于更新远程分支的本地副本?
Not sure about the git remote update, but git pull is the git fetch followed automatically by a git merge...
This is partially a duplicate. Check: What is the difference between 'git pull' and 'git fetch'?
Also, if it means anything to you, I've never used git remote update neither fgit fetch. You can do just fine with pull, commit and push.
Hope it helps..
git remote update will update all of your branches set to track remote ones, but not merge any changes in.
git remote update
git fetch will update only the branch you're on, but not merge any changes in.
git fetch
git pull will update and merge any remote changes of the current branch you're on. This would be the one you use to update a local branch.
git pull