mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
commit
96f5b019ea
1 changed files with 3 additions and 0 deletions
3
git/git_gone.nu
Executable file
3
git/git_gone.nu
Executable file
|
@ -0,0 +1,3 @@
|
|||
# gently try to delete merged branches, excluding the checked out one
|
||||
# This is an alternative to git_branchcleanup.nu
|
||||
git branch --merged | lines | where $it !~ '*' | str trim | where $it != 'master' && $it != 'main' | each { git branch -d $it }
|
Loading…
Add table
Add a link
Reference in a new issue