arg9mg
Last Updated: February 25, 2016
·
5.353K
· sheerun

Undo git reset

git
git reset HEAD@{1}

1 Response
Add your response

747

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 ·
Filed Under