Skip to content

Instantly share code, notes, and snippets.

@caiguanhao
Created April 13, 2017 14:49
Show Gist options
  • Save caiguanhao/6b5521da8f2b4fc74deb6d618d87ac07 to your computer and use it in GitHub Desktop.
Save caiguanhao/6b5521da8f2b4fc74deb6d618d87ac07 to your computer and use it in GitHub Desktop.
fake git commits
git log --reverse --pretty=format:"%at %s" | awk '{print "GIT_AUTHOR_DATE="$1" GIT_COMMITTER_DATE="$1" git commit --allow-empty -m \"" substr($0,12) "\""}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment