Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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 [email protected]{1}

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...