Revert to a previous commit #git
Say I've made several commits but actually my website looks like shit so I want to revert to a commit that is 5 commits old from the current state. Simple to make this old commit the current state of the repo: git checkout OLDCOMMITHASH . (don't forget the period at the end) then just git commit.















