Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sija/git-rewrite-author
CLI tool for rewriting author/committer history of a git repository
https://github.com/sija/git-rewrite-author
cli crystal git utility
Last synced: 23 days ago
JSON representation
CLI tool for rewriting author/committer history of a git repository
- Host: GitHub
- URL: https://github.com/sija/git-rewrite-author
- Owner: Sija
- License: mit
- Created: 2019-06-10T19:00:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T15:43:15.000Z (about 1 year ago)
- Last Synced: 2023-10-14T14:14:44.013Z (about 1 year ago)
- Topics: cli, crystal, git, utility
- Language: Crystal
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-rewrite-author [![CI](https://github.com/Sija/git-rewrite-author/actions/workflows/ci.yml/badge.svg)](https://github.com/Sija/git-rewrite-author/actions/workflows/ci.yml) [![Releases](https://img.shields.io/github/release/Sija/git-rewrite-author.svg)](https://github.com/Sija/git-rewrite-author/releases) [![License](https://img.shields.io/github/license/Sija/git-rewrite-author.svg)](https://github.com/Sija/git-rewrite-author/blob/master/LICENSE)
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
```console
$ 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).```console
$ make install [prefix=/usr/local/bin]
```## Usage
```console
$ git rewrite-author [--committer] [--branches] [--tags] [--old-email ...] [--new-email ...] [--old-name ...] [--new-name ...] [cwd]
```## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## Contributors
- [Sijawusz Pur Rahnama](https://github.com/Sija) - creator and maintainer