github - What happens on several git reset --soft HEAD^^ -


possible duplicate:
is there way undo effects of “git revert head”?

by mistake, messed git. several times executed git reset --soft head^^ & committed changes. never cared command !

started this; created local branch & cherry pick change. later followed git reset --soft head^^ & local commit every time.

i realized did wrong !

can explain command ? implication code ? head should point & how can ?

just see git reflog , find original head want go (referenced head@{0} etc.) , git reset --hard head@{n}

and try run idempotent commands as possible. avoid head~ etc , if use, make sure don't randomly rerun them.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -