git-tidy

command module
v0.0.0-...-3e366bd Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 2 Imported by: 0

README

🗑 git-tidy

GitHub GitHub release codecov Go Report Card

Delete local git branches that have a remote tracking branch that is : gone.

asciicast

Installation

Homebrew
$ brew tap drewwyatt/tap
$ brew install git-tidy
Snapcraft · Snap Status
$ sudo snap install git-tidy
Go
$ go get -u github.com/drewwyatt/git-tidy

Usage

$ git tidy # executes "git branch -d" on ": gone" branches
With force delete
$ git tidy -f # same as above, but with "-D" instead of "-d"
# or
$ git tidy --force
Interactive

Present all ": gone" branches in a checkbox list, allowing user to opt-in to deletions.

$ git tidy -i
# or
$ git tidy --interactive
# with force
$ git tidy -if
# or
$ git tidy --interactive --force
Path

By default, tidy will execute all commands in the current directory (.), however, you can pass a path to another git repository after any/all other flags.

$ git tidy ../some/other/repo
# with flags
$ git tidy -if ../some/other/repo

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