#git-repository

bin+lib git-snip

Snip local Git branches that do not exist on the remote

1 unstable release

0.1.0 Dec 30, 2023

#380 in #git-repository

GPL-3.0-only

17KB
133 lines

git-snip

Version Downloads License Coverage report

git-snip is a CLI utility to delete orphaned local branches that have no upstream.

Installation

You can install git-snip by building it with cargo. Run the following command:

cargo install --target-dir ~/.local git-snip

This will create a binary in ~/.local/bin/git-snip.

Usage

In a git repository, run:

git snip

It will ask to confirm the branches to delete.

License

GNU General Public License v3.0

Dependencies

~12MB
~265K SLoC