mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
added ggf alias to force ggp
This commit is contained in:
parent
e13193b1dd
commit
363e56c7a6
1 changed files with 5 additions and 0 deletions
|
|
@ -242,6 +242,11 @@ ggp() {
|
||||||
git push origin "${b:=$1}"
|
git push origin "${b:=$1}"
|
||||||
}
|
}
|
||||||
compdef _git ggp=git-checkout
|
compdef _git ggp=git-checkout
|
||||||
|
ggf() {
|
||||||
|
[[ "$#" != 1 ]] && b="$(current_branch)"
|
||||||
|
git push --force origin "${b:=$1}"
|
||||||
|
}
|
||||||
|
compdef _git ggf=git-checkout
|
||||||
ggpnp() {
|
ggpnp() {
|
||||||
ggl "$1" && ggp "$1"
|
ggl "$1" && ggp "$1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue