I need to revert this repository to the commit e4ea7bf73124968e2f68012f77837df2046fd6e5
. In other words I want to completely wipe all commits that come after that.
Based on one of the answers in this post here's what I'm doing:
git clone git@github.com:superflycss/utilities-layout.git
cd utilities-layout
git reset e4ea7bf73124968e2f68012f77837df2046fd6e5
# Moves pointer back to previous HEAD
git reset --soft HEAD@{1}
git commit -m "Revert to e4ea7bf73124968e2f68012f77837df2046fd6e5"
# Updates working copy to reflect the new commit
git reset --hard
At this point I'm thinking that I'm home free, but when I do an ls, all the files that were in the original clone are still there. It's as if no revert has happened at all. Thoughts?