1
0
Fork 0

pd- added to delete most recent branch from remote

master
Mike Gerwitz 2015-05-20 09:46:06 -04:00
parent 8e377e9a39
commit d96cb861ae
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ By default, the following mappings are available, each with tab completion:
* `Mu` - git submodule update
* `MP` - git submodule update --remote
* `p` - git push
* `pd-` - delete remote branch `@{-1}` (default `origin`)
* `pu` - git push --set-upstream
* `P` - git pull
* `Pr` - git pull --rebase=preserve

View File

@ -33,6 +33,7 @@ Mi _git_submodule :submodule update --init --recursive
Mu _git_submodule :submodule update --recursive
MP _git_submodule :submodule update --remote --recursive
p _git_push :push
pd- : |ref="$( git rev-parse --symbolic-full-name @{-1} )"; git push "${1:-origin}" :"${ref#refs/heads/*}"
pu _git_push :push --set-upstream
P _git_pull :pull
Pr _git_pull :pull --rebase=preserve