With git log
, I get a list of commits that I have made so far.
commit f5c5cac0033439c17ebf905d4391dc0705dbd5f1
Author: prosseek
Date: Fri Sep 3 14:36:59 2010 -0500
Added and modified the files.
commit c14809fafb08b9e96ff2879999ba8c807d10fb07
Author: prosseek
Date: Tue Aug 31 08:59:32 2010 -0500
Just simple test for core.editor.
... etc ...
How can I revert it back to a specific commit? For example, what should I do if I want to go back to
commit c14809fafb08b9e96ff2879999ba8c807d10fb07
?Is there any other/better way to go back to a specific commit with Git? For example, can I put some label of each commit to get it back with the label?