Answers for "git reset a single file to previous commit"

1

reset a file to last commit git

git checkout <hash> -- file1/to/restore file2/to/restore
Posted by: Guest on September-08-2021
0

git revert commit for single file

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

git reset a single file to previous commit

git checkout c5f567 -- file1/to/restore file2/to/restore
Posted by: Guest on September-28-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language