March 18, 2015

Git – resetting Git.

If you want to drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it like this


You can find all my latest posts on medium.
git fetch origin
git reset --hard origin/master