Last active
February 17, 2024 10:46
-
-
Save npanuhin/4d1e324cc36680681cf492f2a084ade7 to your computer and use it in GitHub Desktop.
Reset git CommitDate (for all commits in current branch)
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
set FILTER_BRANCH_SQUELCH_WARNING=1 | |
git filter-branch -f --commit-filter "GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE";GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME";GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL";git commit-tree "$@";" HEAD | |
or | |
git filter-branch -f --commit-filter "GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE";GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME";GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL";git commit-tree -S "$@";" HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment