Answers for "git cleanup all local changes"

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
5

git discard all changes

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

Code answers related to "git cleanup all local changes"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language