git: useful commands
-- Undo a Git merge that hasn't been pushed yet
git reset --hard HEAD~1
It will get you back 1 commit.
Any modified and uncommitted/unstashed files will be reset to their unmodified state
It will get you back 1 commit.
Any modified and uncommitted/unstashed files will be reset to their unmodified state
Comments
Post a Comment