Last active
April 19, 2017 09:02
-
-
Save WindomZ/18695b33bed478805efe8d384f08b0c4 to your computer and use it in GitHub Desktop.
repository script in https://github.com/WindomZ/gitdate
This file contains hidden or 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
rm -rf "$(git rev-parse --git-dir)/refs/original/" && \ | |
git filter-branch --env-filter \ | |
"if [ \$GIT_COMMIT = \"$(git rev-parse HEAD)\" ]; then | |
export GIT_AUTHOR_DATE=\"$1\" | |
export GIT_COMMITTER_DATE=\"$1\" | |
export GIT_COMMITTER_NAME=\$GIT_AUTHOR_NAME | |
export GIT_COMMITTER_EMAIL=\$GIT_AUTHOR_EMAIL | |
fi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment