Answers for "how to discard all the local changes in git"

2

git remove 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
5

git discard all changes

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

Code answers related to "how to discard all the local changes in git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language