Last active
August 29, 2015 14:10
-
-
Save kovalevsky/e1d8e4e8c44de8baf5a8 to your computer and use it in GitHub Desktop.
change commit date
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
#!/bin/sh | |
NEW_DATE="Mon Nov 7 01:17:21 2011 +0400" | |
COMMIT_HASH="cb00205ac75ae374a79cfaa0de9ce2048745634e" | |
git filter-branch -f --env-filter \ | |
'if [ $GIT_COMMIT = $COMMIT_HASH ] | |
then | |
export GIT_AUTHOR_DATE=$NEW_DATE | |
export GIT_COMMITTER_DATE=$NEW_DATE | |
fi' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment