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 repository
Contributor related actions like list and rewrite
Usage: gitrw contributor <COMMAND>
list
— Lists all authors and committersrewrite
— Allows to rewrite contributors. Expects stdin input lines with the format: Old User old@user.mail = New User new@user.mail
Lists all authors and committers
Usage: gitrw contributor list
Allows to rewrite contributors. Expects stdin input lines with the format: Old User old@user.mail = New User new@user.mail
Usage: gitrw contributor rewrite
Remove files and whole directories from the repository
Usage: gitrw remove <--file <FILE>|--directory <DIRECTORY>|--regex <REGEX>>
-f
,--file <FILE>
— File to remove. The char '*' can be used as a wildcard at the beginning or end. Path can be absolute or relative, depending on if a '/' is present. Argument can be specified multiple times-d
,--directory <DIRECTORY>
— Directory to remove. The char '*' can be used as a wildcard at the begining or end. Path can be absolute or relative, depending on if it starts with a '/'. Argument can be specified multiple times-r
,--regex <REGEX>
— Regex to remove files. Matches on the whole path including the filename, which makes it a little more expensive than the file or directory options. Argument can be specified multiple times
Remove empty commits that are no merge commits
Usage: gitrw prune-empty
This document was generated automatically by
clap-markdown
.