1
0
Fork 0
Now that --force-with-lease is a thing, we can have a shortmap that does
something sane rather than blowing changes away.

* shortmaps (pf): Add shortmap.
master
Mike Gerwitz 2016-11-23 23:10:54 -05:00
parent d96cb861ae
commit 6cbf2bbbde
Signed by: mikegerwitz
GPG Key ID: 8C917B7F5DC51BA2
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ 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/*}"
pf _git_push :push --force-with-lease
pu _git_push :push --set-upstream
P _git_pull :pull
Pr _git_pull :pull --rebase=preserve