Git - When nothing else will succeed and you need to reset your master
git reset --hard <commit-hash>
git push -f origin master
When i was met with trying to rectify a master branch, this hard reset solved all my problems.
Written by Adam Libonatti-Roche
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#