Skip to content

Instantly share code, notes, and snippets.

@devth
Created January 23, 2012 23:29
Show Gist options
  • Save devth/1666368 to your computer and use it in GitHub Desktop.
Save devth/1666368 to your computer and use it in GitHub Desktop.
Useful when experimenting with git features in a test repo.
# create <n> dummy timestamp commits for git testing
# usage: gcn <n>
function gcn() {
for (( i=1; i<= $1; i++ ))
do
echo `date` >> timestamp
git add -A
git commit -m "`date`"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment