Skip to content

Instantly share code, notes, and snippets.

@matthewberryman
Created December 13, 2017 02:07
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 matthewberryman/8e112f1425169ed8cb5f878764340053 to your computer and use it in GitHub Desktop.
Save matthewberryman/8e112f1425169ed8cb5f878764340053 to your computer and use it in GitHub Desktop.
Brings git AuthorDate in line with CommitDate for all git commits
#!/usr/bin/env bash
git filter-branch --env-filter '
export GIT_AUTHOR_DATE=`git show -s --format=%ci $GIT_COMMIT`
' --tag-name-filter cat -- --branches --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment