Skip to content

Commit

Permalink
git: add an alias to remove merged local branches
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Dec 4, 2023
1 parent 534833b commit c732df6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
find = !git log -p -S
all = "!f() { ls -R -d */.git | sed s,/.git,, | xargs -t -P0 -I{} git -C {} $1; }; f"
latest = for-each-ref --color=always --sort=committerdate refs/remotes --format='%(color:bold green)%(committerdate:relative) %(HEAD)%(color:yellow)%(refname:short) %(color:blue)%(subject) %(color:magenta)%(authorname)%(color:reset)'
delete-local-merged = "!git fetch && git branch --merged | egrep -v 'master|main' | xargs git branch -d"
[color]
branch = auto
diff = auto
Expand Down

0 comments on commit c732df6

Please sign in to comment.