git-rewrite-author
Version, currently master branch1 version
- master branchlatestOct 12, 2023
github.com/Sija/git-rewrite-author
CLI tool for rewriting author/committer history of a git repository
Installation
# Add this to your shard.yml
dependencies:
git-rewrite-author:
github: Sija/git-rewrite-author
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
~> 1.6- License
- MIT
- Author
- Sijawusz Pur Rahnama
- Target
git-rewrite-authorfrom src/cli.cr
Dependencies
Runtime Dependencies
Development Dependencies
- ameba~> 1.5.0github: crystal-ameba/amebadev
README
git-rewrite-author

Rewrite authorship information within a history of a git repository.
Editing Past Commits Rewrites History!
No matter how exactly we change the information of past commits, there's one thing to always keep in mind: if we do this, we are effectively rewriting commit history. This is nothing to take lightly: you will create new commit objects in this process, which can become a serious problem for your collaborators - because they might have already based new work on some of the original commits. Therefore, think twice before you rewrite your commit history!
Further reading:
- https://help.github.com/en/github/using-git/changing-author-info
- https://www.git-tower.com/learn/git/faq/change-author-name-email
Installation
$ make build
In order to use it system-wide you need to copy the resulting binary into
your preferred bin location (/usr/local/bin by default).
$ make install [prefix=/usr/local/bin]
Usage
$ git rewrite-author [--committer] [--branches] [--tags] [--old-email ...] [--new-email ...] [--old-name ...] [--new-name ...] [cwd]
Contributing
- Fork it (https://github.com/Sija/git-rewrite-author/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Sijawusz Pur Rahnama - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 12, 2023
- Crystal
~> 1.6- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Sija/git-rewrite-author
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1