I ran a git pull command on my master branch, which broke the web app. I want to return to the previous state, but I couldn't find a way to undo the last pull. Help!
Asked
Active
Viewed 258 times
2 Answers
1
If you haven't done anything else - try
git checkout HEAD@{1}
or if you want to reset the branch
git reset --hard HEAD@{1}
To get more insight into where you're going to move do
git reflog
and review HEAD@{n} references to find the one you need.

Vlad Bespalov
- 21
- 2