Created
February 25, 2012 22:01
-
-
Save devth/1911106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checkout first git revision before a given date | |
# Example usage: gcodate 2011-06-20 | |
# Note that HEAD must be at a commit *after* the date you're targeting. | |
gcodate(){ git checkout "`git rev-list HEAD -n 1 --first-parent --before=$@`" && git show HEAD --stat } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment