How To Revert a Single File to a Specific Commit Using git

1 2 3 |
git log {path_and_file} git checkout {commit_hash} -- {path_and_file} git checkout 8c7eae3f518bb7fd98eb6e8344270f02065d83ee -- myFile.txt |
~or~
1 |
git checkout master -- theSubDir/theFile.json |
Leave Your Comment
All fields marked with "*" are required.