gitcleaner

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

README

gitcleaner

Build Status GoDoc Go Report Card Coverage Status

gitcleaner is a command line tool to ease the cleaning of your Git repository history.

Recommended for:

  • Heavy/big file removal
  • Secrets removal

Disclaimer:

This is just a training project and these are the first lines I've written in Golang, use it as your own risk. Any help would be appreciated.

Usage

gitcleaner [global options] command [command options] [/path/to/your/repo]

If no path argument is given the current path will be used.

Available commands
# List all comands options
gitcleaner help
# List specific command options
gitcleaner help <command>
List Command

List heavier file objects in the repository history

gitcleaner list [command options] [/path/to/your/repo]

Options:

Option Shortname Description
--humanreadable --hr Outputs the size in a readable format
--unique -u Outputs the size of the whole history of each file
--lines NUM -n NUM Output a maximum of NUM files, 0 = no limit (default: 10)

Recommended usage:

gitcleaner list -u --hr # List files with the heavier history size in human readable format

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL