Skip to content

Instantly share code, notes, and snippets.

@clochix
Created June 20, 2012 13:12
Show Gist options
  • Save clochix/2959831 to your computer and use it in GitHub Desktop.
Save clochix/2959831 to your computer and use it in GitHub Desktop.
Commit in the past
# commit file toto 12 hours ago
GIT_COMMITTER_DATE="`date -R --date='12 hours ago'`" bash -c 'git commit --date "$GIT_COMMITTER_DATE" foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment