How to undo "git revert head"? -
i wanted discard changes in current branch , without committing, accidentally entered command git revert head
. changes in prev branch (committed earlier) appear lost?
how can undo agit revert head
command?
you can do
git reset --hard head~1
it take commit before current head.
Comments
Post a Comment