less than 1 minute read

Undo git pull

With Head

git reset --hard 'HEAD@{1}'

With time

git reset --hard master@{"10 minutes ago"}

or

git reset --hard master@{8:30}

For more details, go here: Stackoverflow

Leave a comment