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
Post a Comment