Skip to content

Commit

Permalink
feat(git): update brdi to take multiple prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tagoro9 committed Apr 10, 2021
1 parent 7ab8a23 commit dc29682
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
cod=!git checkout $(git default-branch)
# Checkout a branch by its issue id
coi= "!f(){ git branch -ra | grep -m 1 $1| xargs git co ;};f"
brdi = "!f(){ git branch -ra | grep -m 1 $1| xargs git br -D ;};f"
chd = checkout HEAD .
# Delete all branches that match the specified prefixes
brdi = "!f(){ for prefix in "$@"; do git branch -ra | grep -m 1 $prefix | xargs git br -D; done }; f"
chd = checkout HEAD .
ci = commit
cia = commit --amend
cian = commit --amend --no-edit
Expand Down

0 comments on commit dc29682

Please sign in to comment.