Git Match Remote Master
git fetch origin
git reset --hard origin/master
Cybernated Dev
git fetch origin
git reset --hard origin/master
git fetch origin
git reset --hard origin/master
Remember this forever
git fetch origin
git reset --hard origin/master
git fetch origin
git reset --hard origin/branch_name
git reset --hard <commit-hash>
git push -f origin master # only works for unprotected branches that allow force push
# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>
# remote
git push -f origin master