pd- added to delete most recent branch from remote
parent
8e377e9a39
commit
d96cb861ae
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue