blockの巣

Git Author

git author ver 2.0.0の日本語ドキュメントです。
リポジトリ

旧バージョン(ver 1.0)のドキュメントはこちら

Overview

Installation

Cargoが使える必要があります。

$ cargo install git-author

でインストールできます。

Usage

# get
$ git author [config file location]
$ git author get [config file location]
# set
$ git author set [config file location] <name> <email>
# unset
$ git author unset [config file location]
## replace-simple
$ git author replace simple <old-name> <old-email> [new-name] [new-email]
## replace-detail
$ git author replace detail --filter-author <name> <email> --filter-committer <name> <email> --replace-target <replace-target>

Description

get

$ git author [config file location]
$ git author get [config file location]

git authorまたはgit author getでuser.nameとuser.emailを取得できます。
get

set

$ git author set [config file location] <name> <email>

user.nameとuser.emailを設定できます。
set

unset

$ git author unset [config file location]

user.nameとuser.emailの設定を削除できます。
unset

replace

過去のコミットのAuthorとCommitterを書き換えます。
サブコマンドとしてsimpledetailが存在します。

simple

$ git author replace simple <old-name> <old-email> [new-name] [new-email]

過去のコミットのAuthor/Committerのold-name <old-email>new-name <new-email>に置き換えます。
new-namenew-emailを省略した場合はgit authorで取得できるnameとemailを使用します。
replace-simple

detail

$ git author replace detail --filter-author <name> <email> --filter-committer <name> <email> --replace-target <replace-target>

指定した条件のコミットのAuthorとCommitterのいずれかまたは両方のnameとemailを置き換えます。

options
フィルタリング条件
置き換え後の値
置き換え対象

replace-detail

License

MIT