Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git revert all local changes

git reset; git checkout .; git reset --hard HEAD; git clean -fdx; 
git fetch --all; git fetch --all --tags; git pull; 
git pull --recurse-submodules
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #revert #local
ADD COMMENT
Topic
Name
9+2 =