git: How to revert a file to a specific commit

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
 1234
567891011
12131415161718
19202122232425
262728293031