Skip to main content

Posts

Showing posts from November, 2014

Completely Remove a Commit in a Github Branch

I had a hard time trying to find a straight forward way  to completely remove a commit in Github.  I installed a plug-n that was suppose to make my life easier, but did the complete opposite. With no further adieu, here's the commands: git reset --hard <the commit you want as HEAD> git push origin HEAD --force Done and done. More reading: http://stackoverflow.com/questions/1338728/delete-commits-from-a-branch-in-git