What is the difference between "git reset --hard" and "git checkout ."?

Viewed 1492

When I want some changes in my project and I want to return to the state of the last commit, I can use these both options. Do they actually do the same thing or is there any difference between them?

3 Answers
Related