I've seen How do I force "git pull" to overwrite local files? but git fetch -all; git reset --hard origin/master
will reverts to the latest commit.
My question is :
I checked out into a previous commit, then I made some modifications to the local files. Now, I want to revert all the local changes but stay in that commit. What is the command ?
(Of course I know I can do 'git checkout' for all the modified files but there should be a couple of commands).