Answers for "git revert one file"

2

git revert one file

git checkout HEAD -- /directory/my-file.txt
Posted by: Guest on October-28-2020
5

git reset one file

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

How can I reset or revert a file to a specific revision?

git reset <commit hash> <filename>
Posted by: Guest on April-12-2020
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