about summary refs log tree commit diff
path: root/.config
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2021-02-02 10:04:38 -0600
committerStarfall <us@starfall.systems>2021-02-08 15:13:58 -0600
commit82f43b640528e92f90053badd911ab7d2b8a4e91 (patch)
tree0492a5b0147a575a54eaa2c01324c8830265ffce /.config
parent771dd4aa2c36b2b6a48942e4df11eda1b1e942fd (diff)
git: add git clean alias for cleaning up dead branches
Diffstat (limited to '.config')
-rw-r--r--.config/git/config3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config
index ca24191..f4113d9 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -13,6 +13,9 @@
 [rebase]
 	autosquash = true
 [alias]
+; improve clean command output at some point
+; probably also needs to checkout main or develop first
+	clean = !git remote prune origin && git branch | xargs git branch -d
 	force = push --force-with-lease
 	oops = commit --all --amend --no-edit
 	stashpull = !git stash && git pull && git stash pop