Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graysonarts/git-superprune
Prune branches that have been deleted from the origin
https://github.com/graysonarts/git-superprune
Last synced: about 2 months ago
JSON representation
Prune branches that have been deleted from the origin
- Host: GitHub
- URL: https://github.com/graysonarts/git-superprune
- Owner: graysonarts
- Created: 2024-06-13T22:50:03.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-19T14:07:48.000Z (5 months ago)
- Last Synced: 2024-07-20T07:48:44.394Z (5 months ago)
- Language: Rust
- Size: 42 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# git-superprune
A git command to prune remote branches that have already been merged.
## What it automates
```
> git branch -vadd-sstripper-to-video-processor 5809024 Merge pull request #39 from 1
create_additional_clips 2e58682 [gone] Handle fetching information
enable-logging-for-debug-mode d6f5a52 checkpoint
fix-segmentation de3d099 [gone] move message to debug
grayson/elk-50-make-jobid-something-that-the-workflows-are-aware-of-and 04821cc [gone] fix the job status updating
job_watcher e8bfa01 [gone] adding instructions
* main 8dcade5 Merge pull request #58 from 2
rate-limit-handling 7782767 checkpoint
tweak_autoscale_for_demo 23a5234 [gone] Adjust scaling for demo> git branch -d tweak_autoscale_for_demo
...
```## Usage
```
> git superprune
```This is a dry run that prints out which branches will be deleted.
```
> git superprune -x
```Delete the branches
```
> git superprune -h
Prune local branches that no longer exist on the remoteUsage: git-superprune [OPTIONS] [ROOT]
Arguments:
[ROOT] Root directory of the git repositoryOptions:
-v, --verbose Display verbose output
-u, --upstream run `git remote prune ` before scanning [env: SUPERPRUNE_UPSTREAM_REMOTE=origin]
-s, --ssh-key SSH key in `~/.ssh/`` to use for authentication with remote, defaults to `id_rsa` [env: SUPERPRUNE_SSH_KEY=]
-x, --execute Execute the branch deletion
-h, --help Print help
-V, --version Print version
```