Reset master to match remote
Git, Repository, Branch · Apr 13, 2021

Resets the local master
branch to match the one on the remote.
- Use
git fetch origin
to retrieve the latest updates from the remote. - Use
git checkout master
to switch to themaster
branch. - Use
git reset --hard origin/master
to reset the localmaster
branch to match the one on the remote.
git fetch origin git checkout master git reset --hard origin/master # Examples git fetch origin git checkout master git reset --hard origin/master # Local `master` branch is now up to date with remote `master`