Thursday, 15 April 2010

I need to revert my last two "git pulls," I don't know anything else about the commit I need -



I need to revert my last two "git pulls," I don't know anything else about the commit I need -

in nutshell i've done 2 git pulls , need revert before did them. first pull brought me forwards @ to the lowest degree 100 commits can't guess commit id on.

is there way me straight undo pulls or otherwise find commit id on morning?

git reflog show history of actions. each line starts sha hash of new commit on result of action, i.e. commit git moved to. line before "pull" entry , hash commit on before pull.

in illustration you'd move "1234abc" git checkout 1234abc or git checkout head@{2}.

c831d9e head@{0}: commit: add together new feature fe1c2f8 head@{1}: pull: fast-forward 1234abc head@{2}: commit: add together new info 39c842b head@{3}: checkout: moving master feature aa0b4b7 head@{4}: checkout: moving master redis_xvdc

git

No comments:

Post a Comment