Answers for "git how to force discard local changes"

18

git discard local changes

# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hard
Posted by: Guest on May-07-2020
0

git discard all local changes

git restore .
Posted by: Guest on February-01-2022

Code answers related to "git how to force discard local changes"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language