An open API service indexing awesome lists of open source software.

https://github.com/jameshiew/same

CLI utility for listing branches different to master
https://github.com/jameshiew/same

git-branch golang

Last synced: 6 months ago
JSON representation

CLI utility for listing branches different to master

Awesome Lists containing this project

README

          

# 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

```shell script
go install github.com/jameshiew/same
```

## Usage

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

### Show branches with no diff

```shell script
same | xargs git show-branch
```

### Delete branches with no diff

```shell script
same | xargs git branch -D
```