Answers for "git undo changes to a single file"

3

git discard changes to one file

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

git revert commit for single file

git checkout <commit_hash> path/to/file
Posted by: Guest on December-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language