Skip to content

tiavision/gitrw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command-Line Help for gitrw

This document contains the help content for the gitrw command-line program.

Command Overview:

gitrw

CLI tool for reading and rewriting history information of a git repository

Usage: gitrw [OPTIONS] [REPOSITORY] <COMMAND>

Subcommands:
  • contributor — Contributor related actions like list and rewrite
  • remove — Remove files and whole directories from the repository
  • prune-empty — Remove empty commits that are no merge commits
Arguments:
  • <REPOSITORY> — Path to the mirrored/bare repository (do not use on a repository with a working copy)
Options:
  • -d, --dry-run — Do not change the repository

gitrw contributor

Contributor related actions like list and rewrite

Usage: gitrw contributor <COMMAND>

Subcommands:
  • list — Lists all authors and committers
  • rewrite — Allows to rewrite contributors. Expects stdin input lines with the format: Old User old@user.mail = New User new@user.mail

gitrw contributor list

Lists all authors and committers

Usage: gitrw contributor list

gitrw contributor rewrite

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

gitrw remove

Remove files and whole directories from the repository

Usage: gitrw remove <--file <FILE>|--directory <DIRECTORY>|--regex <REGEX>>

Options:
  • -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

gitrw prune-empty

Remove empty commits that are no merge commits

Usage: gitrw prune-empty


This document was generated automatically by clap-markdown.

About

Rewrite git history. Fast.

Resources

Stars

Watchers

Forks

Languages