Setting your branch to exactly match the remote branch can be done in two steps:
git fetch origin
git reset --hard origin/master
Posted by kiatng to Git (2016-12-15 02:56)
Setting your branch to exactly match the remote branch can be done in two steps:
git fetch origin
git reset --hard origin/master