From 74d32adb7001807add063c2884dc520095772cc7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 29 May 2017 15:09:12 +0100 Subject: git pull prune delete-merged-branches --- bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bashrc b/bashrc index be516b6..e50372d 100644 --- a/bashrc +++ b/bashrc @@ -65,6 +65,10 @@ gitd() { gitdc() { diffWith "git diff --cached --no-prefix --relative -b -M $@" } +gppdmb() { + PARENT=${1:-master} + git checkout $PARENT && git pull --prune && git delete-merged-branches +} alias gst='git status' # Hg hgd() { -- cgit v1.2.3