Answers for "git command to discard changes to a file in a git repository"

11

how to remove file changes in git

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

git discard changes to one file

git checkout -- file
Posted by: Guest on August-03-2021

Code answers related to "git command to discard changes to a file in a git repository"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language