Answers for "git remove all commit but keep local changes"

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
3

git remove all uncommitted changes

git add . 
git stash 
git stash drop
git clean -fdx
Posted by: Guest on November-11-2021

Code answers related to "git remove all commit but keep local changes"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language