An open API service indexing awesome lists of open source software.

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!

Awesome Lists containing this project

README

          

# git-amend
[![Build Status](https://travis-ci.org/hex0cter/git-amend.svg?branch=master)](https://travis-ci.org/hex0cter/git-amend)
[![Gem Version](https://badge.fury.io/rb/git-amend.svg)](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.
```