Last Updated: February 25, 2016
·
316
· fjorgemota

Reset a branch in git to its origin

Just run the snippet below in the folder of the repository GIT:

git reset --hard origin/`git rev-parse --abbrev-ref HEAD