Answers for "undo local changes git command"

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
2

remove local changes git

git fetch  # will fetch the latest changes on the remote
git reset --hard origin/master # will set your local branch to match the representation of the remote just pulled down.
Posted by: Guest on February-08-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language