Skip to content

Instantly share code, notes, and snippets.

@fffaraz
Created April 2, 2016 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fffaraz/7337699d44702d93de7a31f58b52bd54 to your computer and use it in GitHub Desktop.
Save fffaraz/7337699d44702d93de7a31f58b52bd54 to your computer and use it in GitHub Desktop.
git-streak.sh
#!/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