Answers for "how reset all changes in git"

5

git discard all changes

git clean -df
git checkout -- .
Posted by: Guest on May-23-2020
4

git undo all changes

use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
Posted by: Guest on December-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language