Answers for "git command to reset a file"

9

git reset one file

git checkout HEAD -- my-file.txt
Posted by: Guest on April-28-2020
0

reset git file

$ git reset foo/bar.txt
$ git checkout foo/bar.txt
Posted by: Guest on January-21-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language