Skip to content

Commit

Permalink
feat: add delete branch merged command in git configs
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Aug 19, 2024
1 parent f9c3a8c commit 81a51bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
ignore = !sh -c '!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi'

# Remote
rup = !sh -c 'git remote update -p && git upm && git la' -
rup = !sh -c 'git remote update -p && git upm && git dbm && git la' -
fat = "fetch --all --tags"

# Branchs
Expand All @@ -39,6 +39,10 @@

dt = !sh -c 'git tag -d $1 && git push origin :$1' -

# Remove branches that have already been merged with main.
# a.k.a. ‘delete branch merged’
dbm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"

up = !sh -c 'git fetch origin $1:$1' -
upm = fetch origin main:main

Expand Down

0 comments on commit 81a51bc

Please sign in to comment.