Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.4k points)

Is it possible to undo the changes caused by the following command? If so, how?

git reset --hard HEAD~1

1 Answer

+1 vote
by (27.5k points)

This is very simple, run the following command: 

$ git reset --hard HEAD@{1}

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...