This document contains the help content for the gitrw
command-line program.
Command Overview:
gitrw
↴gitrw contributor
↴gitrw contributor list
↴gitrw contributor rewrite
↴gitrw remove
↴gitrw prune-empty
↴
CLI tool for reading and rewriting history information of a git repository
Usage: gitrw [OPTIONS] [REPOSITORY] <COMMAND>
contributor
— Contributor related actions like list and rewriteremove
— Remove files and whole directories from the repositoryprune-empty
— Remove empty commits that are no merge commits
<REPOSITORY>
— Path to the mirrored/bare repository (do not use on a repository with a working copy)
-
-d
,--dry-run
— Do not change the repositoryPossible values:
true
,false
Contributor related actions like list and rewrite
Usage: gitrw contributor <COMMAND>
list
— Lists all authors and committersrewrite
— Allows to rewrite contributors
Lists all authors and committers
Usage: gitrw contributor list
Allows to rewrite contributors
Usage: gitrw contributor rewrite <MAPPING_FILE>
<MAPPING_FILE>
— Format inside file: Old User old@user.mail = New User new@user.mail
Remove files and whole directories from the repository
Usage: gitrw remove <--file <FILE>|--directory <DIRECTORY>>
-f
,--file <FILE>
— File to remove. Argument can be specified multiple times-d
,--directory <DIRECTORY>
— Directory to remove. Argument can be specified multiple times
Remove empty commits that are no merge commits
Usage: gitrw prune-empty