Created
August 7, 2015 19:04
-
-
Save debo/c106f29cf6343af33969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
commit="$1" | |
date="$2" | |
git filter-branch --env-filter \ | |
"if test \$GIT_COMMIT = '$commit' | |
then | |
export GIT_AUTHOR_DATE='$date' | |
export GIT_COMMITTER_DATE='$date' | |
fi" && | |
rm -rf "$(git rev-parse --git-dir)/refs/original/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment