on-internet
← Community

Resetting remote to a certain commit

Stack Overflow ·

I want to discard all changes done after commit <commit-hash> . So I did: git reset --hard <commit-hash> Now I want to do the same with my remote. How can I do this? I have done some commits (and pushes) after <commit-hash> and I just want to discard them all. Is just something went terribly wrong in the way and I don't want to make it worse than it is already. ;( I basically want to rewind my origin/master to <commit-hash>

Comments

Sign in or sign up to comment and upvote.

No comments yet.