My working copy is on master branch, how to update from remote server?
Say I working locally on my own custom branch, but I want to update the master with the remote branch, how would I do that?
My working copy is on master branch, how to update from remote server?
Say I working locally on my own custom branch, but I want to update the master with the remote branch, how would I do that?
git pull origin master
Or if instead of pulling into your local branch, you just wanted to update the branches you have locally that track origin
:
git fetch
or
git remote update
if you're tracking multiple remote servers and want to update them all at once.
It's not clear from your description that you understand the difference between "master" (a local branch) and "origin/master" (the master of the origin remote). It's also not clear which you want to update. A simple "git fetch origin" will update "origin/master" to reflect the upstream, but you can't change the local "master" until you check it out.