Answers for "git undo file changes after commit"

1

revert uncommitted changes to a single file

git checkout HEAD -- my-file.txt
Posted by: Guest on May-18-2020
1

undo git file changes

git checkout {filename}
Posted by: Guest on November-13-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language