arg9mg
Last Updated: February 25, 2016
·
5.32K
· sheerun
Photo on 08.01.2013 at 04.15

Undo git reset

git
git reset HEAD@{1}

1 Response
Add your response

747
Richhealeyavatar

Assuming reflogging is turned on.

You should elaborate on how this works, ie, ref@{n} is a symbolic ref for n entries ago in ref's reflog.

Recent versions of git also support @{2.days.ago} etc.

over 1 year ago ·