On this page
audit and rewrite commit author/committer identity — list all identities, check against expected values, and rewrite name or email across history
#safegit author
audit and rewrite commit author/committer identity — list all identities, check against expected values, and rewrite name or email across history
#author check
check that all commits use the expected author and committer identity by scanning every commit in the repository history, reporting any deviations with the exact commit hashes and mismatched fields, and suggesting the corresponding safegit author rewrite command to fix each deviation found
Effect: read_only
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--name | str | expected author and committer display name that all commits should use | |||
--email | str | expected author and committer email address that all commits should use |
#author list
list all distinct author and committer identities across the entire commit history, showing name, email, role, and commit count for each unique identity — useful for auditing repositories with multiple contributors or detecting unwanted identity variations such as typos, old email addresses, or bot accounts that should be consolidated before a rewrite
Effect: read_only
#author rewrite
rewrite author and committer name or email across all commit history using git filter-branch style rewriting, replacing every occurrence of the old identity with the new one in both author and committer fields while preserving timestamps, commit messages, tree contents, and parent relationships so the rewritten history is otherwise identical to the original
Effect: mutating · consequential (prompts before running; --approve-consequential skips)
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--old-name | str | current author or committer display name to search for and replace | |||
--new-name | str | new display name to substitute wherever the old name is found in history | |||
--old-email | str | current author or committer email address to search for and replace | |||
--new-email | str | new email address to substitute wherever the old email is found in history |