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
- Host: GitHub
- URL: https://github.com/jameshiew/same
- Owner: jameshiew
- License: mit
- Archived: true
- Created: 2020-01-19T19:45:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T17:43:22.000Z (over 2 years ago)
- Last Synced: 2025-10-18T15:49:15.595Z (9 months ago)
- Topics: git-branch, golang
- Language: Go
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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
```