I am using sublime text2 and have screwed up my codes. I will like to revert to my previous codes on Sublime text2 from github so I can go back to codes from my previous commit.
How do I go about doing that?
I am using sublime text2 and have screwed up my codes. I will like to revert to my previous codes on Sublime text2 from github so I can go back to codes from my previous commit.
How do I go about doing that?
reset to particular commit use this command "git reset --hard COMMIT-SHA". COMMIT-SHA is the hash of that particular commit which you will be able get through git logs or by using any tools like gitg, git gui etc. This will reset you code and also remove all the commits after COMMIT-SHA commit please take care of it