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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -