github - Git Discard all changes locally and remote after a certain commit -
i'm having bit of problem reverting git commit. i'm using github , sourcetree. how can discard changes after commit "typo" , revert state , work there?
i've tried reset, doesn't seem trick. if there terminal commando git okay too.
you can revert files under working directory , index typing next command.
git reset --hard <shasum of commit>
for illustration if have commit called commit 4a155e5b3b4548f5f8139b5210b9bb477fa549de write:
git reset --hard 4a155e5
git github
No comments:
Post a Comment