Skip to content

Instantly share code, notes, and snippets.

@hakusaro
Created March 29, 2015 06:18
Show Gist options
  • Save hakusaro/19d058b43e04c9bc84aa to your computer and use it in GitHub Desktop.
Save hakusaro/19d058b43e04c9bc84aa to your computer and use it in GitHub Desktop.
How to commit in the past

To commit in the past...you need to be creative and get a repo where you can commit to.

  • $ export GIT_AUTHOR_DATE="Sat, 28 Mar 2015 22:00:00 -0700"
  • $ export GIT_COMMIT_DATE="Sat, 28 Mar 2015 22:00:00 -0700"
  • $ git commit -m "commit in the past"

Save those github streaks when you're off by only a few minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment