jameshiew / same

CLI utility for listing branches different to master

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

same

same lists Git branches which have an empty diff against the master branch.

This includes branches which may have at one point been different to master, but have since had the master branch merged in or have otherwise "caught up".

Installation

go install github.com/jameshiew/same

Usage

Useful for piping into xargs for executing further Git commands e.g.

Show branches with no diff

same | xargs git show-branch

Delete branches with no diff

same | xargs git branch -D

About

CLI utility for listing branches different to master

License:MIT License


Languages

Language:Go 96.4%Language:Shell 2.7%Language:Makefile 0.9%