https://github.com/catc/b
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/catc/b
- Owner: catc
- Created: 2020-10-04T23:31:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-03T20:10:26.000Z (over 4 years ago)
- Last Synced: 2025-05-20T15:13:04.400Z (about 1 year ago)
- Language: Go
- Size: 78.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# b
Git branch tools + shortcuts. This tool was created for own personal workflow - your mileage may vary, use at own risk.

## Usage
#### `b`
View available branches to checkout
#### `b -l`
View local branches in repo
#### `b prune`
Select branches to delete
#### `b prune 20`
Select branches to delete that are older than n days
#### `b clone`
Clone branch - useful if about to make potentially destructive changes and don't wanna go through reflog to fix it
#### `b add`
Walk through changed + untracked files to stage, basically a glorified git diff with the option to add, skip or checkout unstaged files
## Dev
- install deps via `go mod download`
- build and run `go build && ./b`