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

Published Date Author: , Posted March 18th, 2019 at 6:25:56pm

git log {path_and_file}

git checkout {commit_hash} -- {path_and_file}

git checkout 8c7eae3f518bb7fd98eb6e8344270f02065d83ee -- myFile.txt

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.