summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 15:09:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 15:09:12 +0100
commit74d32adb7001807add063c2884dc520095772cc7 (patch)
treed4e3f26a48aaeedea5fc603e9d106db7969cf972 /bashrc
parentRemove cd (diff)
downloadutil-74d32adb7001807add063c2884dc520095772cc7.tar.bz2
util-74d32adb7001807add063c2884dc520095772cc7.tar.xz
util-74d32adb7001807add063c2884dc520095772cc7.zip
git pull prune delete-merged-branches
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 4 insertions, 0 deletions
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() {