Others have told you the short version: just pull
. But since you actually asked about `remote update...
remote update
is the high level command for "update everything we know from remote(s)." It fetches new branches, it can prune old ones, and it can do this for arbitrary groups of remotes, or all of them. It only updates remote tracking branches (with names like origin/master
); it doesn't touch your branches. If this sort of updating is what you want to do, this is the command for you. It's quite common to want to inspect what's out there in a remote, without actually merging any of it into any of your branches, and the ability to prune stale branches is pretty nice too.
If all you want to do is merge the appropriate remote branch into your current one, git pull
is the right command. It will update some remote branches in the process, yes, but that's not its primary purpose.