Created
August 28, 2023 02:19
-
-
Save 13x1/3a7deb1c31d093b25c251b8dd8281973 to your computer and use it in GitHub Desktop.
putting it here so i dont forget: git rebase to sign past commits
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
git_sign_since() { | |
git -c rebase.instructionFormat='%s%nexec GIT_COMMITTER_DATE="%cD" git commit --amend --date="%cD" --no-edit --no-verify -S' rebase -i $1 | |
} |
THANK YOU SO MUCH omfg
thank you github gist for replacing my missing brain cells
THANK UUUU
THANK YOUUUUU
THANKSIESSSS (also use --root
to change all commits in case of 🏳️⚧️)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THANK YOU I FUCKED IT UP BIG TIME BUT IT STILL HELPS