Answers for "git discard all local changes and switch to master"

5

git pull master discard local changes

git reset --hard origin/master
git pull origin master
Posted by: Guest on February-19-2021
11

git discard all changes

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

Code answers related to "git discard all local changes and switch to master"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language