mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
[Plugin] Git: Add few alias.
This commit is contained in:
parent
4a77b0d4ec
commit
6e1a637147
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# Aliases
|
||||
alias g='git'
|
||||
alias gst='git status'
|
||||
alias gsts='git status --short'
|
||||
alias gl='git pull'
|
||||
alias gup='git fetch && git rebase'
|
||||
alias gp='git push'
|
||||
|
|
@ -12,6 +13,7 @@ alias gb='git branch'
|
|||
alias gba='git branch -a'
|
||||
alias gcount='git shortlog -sn'
|
||||
alias gcp='git cherry-pick'
|
||||
alias gcpe='git cherry-pick --edit '
|
||||
|
||||
|
||||
# Git and svn mix
|
||||
|
|
@ -29,4 +31,4 @@ function current_branch() {
|
|||
# these aliases take advangate of the previous function
|
||||
alias ggpull='git pull origin $(current_branch)'
|
||||
alias ggpush='git push origin $(current_branch)'
|
||||
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
|
||||
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue