Created
February 25, 2023 22:27
-
-
Save rlaphoenix/0d6407a647f423c452679fc9039afc99 to your computer and use it in GitHub Desktop.
Keep commit author date/time timestamps on GitHub after squashing/merge/rebase
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
`git checkout the_branch` | |
`git rebase --committer-date-is-author-date -i HEAD~35` | |
Where HEAD~35 is the latest 35 commits that you want to keep the dates of. | |
You could do `git rebase --committer-date-is-author-date -i --root` but I don't recommend it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment