https://github.com/hex0cter/git-amend
Update old git commits with new author, committer, or even the commit date!
https://github.com/hex0cter/git-amend
Last synced: 12 months ago
JSON representation
Update old git commits with new author, committer, or even the commit date!
- Host: GitHub
- URL: https://github.com/hex0cter/git-amend
- Owner: hex0cter
- Created: 2019-09-06T20:34:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T02:07:17.000Z (about 6 years ago)
- Last Synced: 2025-06-04T17:24:52.638Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-amend
[](https://travis-ci.org/hex0cter/git-amend)
[](https://badge.fury.io/rb/git-amend)
A CLI tool to update the information of exisiting git commit, such as commit date, auther, etc.
## How to install
```bash
gem install git-amend
```
## How to install
```bash
gem build git-amend.gemspec
gem install --local git-amend-.gem
cd
git-amend
```
## How to use
```bash
Usage: git-amend [options]
-p, --path= Path to the target respository
-a, --author= Author email for all commits
-n, --author-name= Author name for all commits
-c, --committer= Committer email for all commits
-m, --committer-name= Committer name for all commits
-C, --commit-hash= The hash of git commit that needs to be updated
-s, --shuffle Whether to shuffle the commit date (default: no)
-f, --from= Date of the first commit (YYYY-mm-dd), only used with --shuffle
-t, --to= Date of the latest commit (YYYY-mm-dd), only used with --shuffle
-v, --verbose Verbose mode
-V, --version Print version
-d, --dry-run Dry run without executing the actual command.
```