Skip to content

Commit

Permalink
add rm merged branches git alias
Browse files Browse the repository at this point in the history
  • Loading branch information
arron-green committed Aug 31, 2020
1 parent 8823a9b commit 73a184c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
setuser-work = !git config user.name 'Arron Green' && git config user.email '[email protected]' && git whoami
whoami = !bash -c 'echo \"$(git config --get user.name) <$(git config --get user.email)>\"'
squash = "!f(){ git rebase -i $(git merge-base ${1:-master} $(git rev-parse --abbrev-ref HEAD)); };f"
rm-merged = !git branch --merged | egrep -v '(^\\*|master|dev)' | xargs -I{} git branch -d {}

[merge]
tool = diffmerge
Expand Down

0 comments on commit 73a184c

Please sign in to comment.