4 ms·
"If you want to revert/reset a file, why don't you just use the reset command? That seems like a more direct way than using checkout." Because that's what git
by pfranz 13y ago
"If you want to revert/reset a file, why don't you just use the reset command? That seems like a more direct way than using checkout."
Because that's what git tell you to do when you run "git status"
# (use "git checkout -- <file>..." to discard changes in working directory)