1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Merge pull request #54 from efx/git-gone

gentle git gone script
This commit is contained in:
Darren Schroeder 2021-05-19 10:50:16 -05:00 committed by GitHub
commit 96f5b019ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
git/git_gone.nu Executable file
View 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 }