Created
April 2, 2016 00:18
-
-
Save fffaraz/7337699d44702d93de7a31f58b52bd54 to your computer and use it in GitHub Desktop.
git-streak.sh
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
#!/bin/bash | |
current="Thu Dec 25 00:00:00 2014" | |
counter=9126 | |
while [ $counter -le 9140 ]; do | |
export GIT_AUTHOR_DATE="$current +0000" | |
export GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE | |
git commit --allow-empty -m "$counter" | |
echo $GIT_AUTHOR_DATE | |
current=$(date -d "$current 1 days") | |
counter=$(( $counter + 1 )) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment