// Setting your branch to exactly match the remote branch can be done in two steps: git fetch origin git reset --hard origin/master