3 ms·
Ok, I re-read your command, and realized you’re doing ‘checkout’ minus minus period (to be explicit). Honestly it had never even occurred to me to use the peri
by 40four 6y ago
Ok, I re-read your command, and realized you’re doing ‘checkout’ minus minus period (to be explicit).
Honestly it had never even occurred to me to use the period there, but it does work :) I always used it for single files.
As we said in other comments, that’s why they introduced ‘restore’.
But, if you’re looking to reset all changes, in every file back to the state of the HEAD, then I believe ’git reset —hard’ would be the appropriate tool!