1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 12:09:36 +08:00

feat(git): add gpsupf alias (#11268)

This commit is contained in:
Taehyun Hwang 2023-01-29 02:45:23 +09:00 committed by GitHub
parent b0bffcaf86
commit 39525e5ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -89,6 +89,7 @@ plugins=(... git)
| ggsup | git branch --set-upstream-to=origin/$(git_current_branch) |
| ggu | git pull --rebase origin $(current_branch) |
| gpsup | git push --set-upstream origin $(git_current_branch) |
| gpsupf | git push --set-upstream origin $(git_current_branch) --force-with-lease |
| ghh | git help |
| gignore | git update-index --assume-unchanged |
| gignored | git ls-files -v \| grep "^[[:lower:]]" |

View File

@ -199,6 +199,7 @@ alias ggpush='git push origin "$(git_current_branch)"'
alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
alias gpsup='git push --set-upstream origin $(git_current_branch)'
alias gpsupf='git push --set-upstream origin $(git_current_branch) --force-with-lease'
alias ghh='git help'
@ -341,4 +342,4 @@ function grename() {
fi
}
unset git_version
unset git_version