Commits

Randy Stauner  committed 1f1ce40

Merge and delete branch with one alias

  • Participants
  • Parent commits c2bb0a9

Comments (0)

Files changed (1)

File scripts/git_config.sh

 $gc alias.lg               "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%aN%Creset %C(blue)<%aE>%Creset' --abbrev-commit"
 $gc alias.lgpcw           $'!git lg -p --color-words=.'
 
+$gc alias.merge-delete    $'!_() { git merge "$1"; git branch -d "$1"; }; _'
+
 # provide rebasing music (https://coderwall.com/p/at9bya)
 #$gc alias.mav             $'!afplay ~/Music/Danger\\ Zone.mp3 & LASTPID=$! \ngit rebase -i $1 \nkill -9 $LASTPID\n true'