gitcleaner

command module
v0.0.2 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

And Windows?

There is not support for Windows on CMD now, but you can run it on Windows using the Git Bash.

License

gitcleaner. Git housekeeping utility.

Copyright (C) 2017 Alberto Varela [email protected]

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

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