Last Updated: February 25, 2016
·
5.605K
· sheerun

Undo git reset

git reset HEAD@{1}

1 Response
Add your response

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 ·