master
branch to match the one on the remote.git fetch origin
to retrieve the latest updates from the remote.git checkout master
to switch to the master
branch.git reset --hard origin/master
to reset the local master
branch to match the one on the remote.git fetch origin git checkout master git reset --hard origin/master
git fetch origin git checkout master git reset --hard origin/master # Local `master` branch is now up to date with remote `master`
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️