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:
Done and done.
More reading:
http://stackoverflow.com/questions/1338728/delete-commits-from-a-branch-in-git
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
Comments
Post a Comment