Search code examples
gitgit-reset

Undo git reset HEAD~3


I was stepped down from my git repo into 3 step below by using,

git reset HEAD~3

but after that i didnt find my previous changes. so how do i undo this reset HEAD~3


Solution

  • git reset HEAD@{1}  # where you want to HEAD