Answers for "revert all changes in local git"

2

git revert all local changes

git reset; git checkout .; git reset --hard HEAD; git clean -fdx; 
git fetch --all; git pull
Posted by: Guest on November-14-2021
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