diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-29 15:09:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-29 15:09:12 +0100 |
commit | 74d32adb7001807add063c2884dc520095772cc7 (patch) | |
tree | d4e3f26a48aaeedea5fc603e9d106db7969cf972 /bashrc | |
parent | Remove cd (diff) | |
download | util-74d32adb7001807add063c2884dc520095772cc7.tar.bz2 util-74d32adb7001807add063c2884dc520095772cc7.tar.xz util-74d32adb7001807add063c2884dc520095772cc7.zip |
git pull prune delete-merged-branches
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() { |