Skip to content

Instantly share code, notes, and snippets.

@pradishb
Created June 16, 2023 13:14
Show Gist options
  • Save pradishb/8639ac6d8ed02c07b9702830e13d5f75 to your computer and use it in GitHub Desktop.
Save pradishb/8639ac6d8ed02c07b9702830e13d5f75 to your computer and use it in GitHub Desktop.
Set commit name, email and date to author name, email and date
git -c rebase.instructionFormat='%s%nexec GIT_COMMITTER_DATE="%cD" GIT_COMMITTER_NAME="%aN" GIT_COMMITTER_EMAIL="%aE" git commit --amend --no-edit' rebase -i --root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment