Answers for "how to redo the discard local changes in git"

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 "how to redo the discard local changes in git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language