What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-30 23:50:30
revert uncommitted changes to a single file
git checkout HEAD -- my-file.txt Add solution -
-
Shell/Bash 2021-10-18 12:54:03
git revert one file
git checkout HEAD -- /directory/my-file.txt Add solution