7个版本
0.1.6 | 2024年7月19日 |
---|---|
0.1.5 | 2024年7月19日 |
0.1.2 | 2024年6月17日 |
#1 in #merged
每月下载 509 次
16KB
260 行
git-superprune
一个用于修剪已合并的远程分支的git命令。
自动化内容
> git branch -v
add-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
...
使用方法
> git superprune
这是一个dry run,会打印出将要删除的分支。
> git superprune -x
删除分支
> git superprune -h
Prune local branches that no longer exist on the remote
Usage: git-superprune [OPTIONS] [ROOT]
Arguments:
[ROOT] Root directory of the git repository
Options:
-v, --verbose Display verbose output
-u, --upstream <UPSTREAM> run `git remote prune <upstream>` before scanning [env: SUPERPRUNE_UPSTREAM_REMOTE=origin]
-s, --ssh-key <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
依赖项
~20–32MB
~563K SLoC