git: How to revert a file to a specific commit

This entry is part 7 of 7 in the series git: useful HOWTOs
git checkout COMMIT_HASH file/to/revert

Will bring the file/to/revert file to the state in COMMIT_HASH commit.

Series Navigationgit: Completely revert the last commit

Leave a Reply

*

Posts’ Calendar
October 2015
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031