mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
many git and repo aliases
This commit is contained in:
parent
7f6cad2c5b
commit
0b2e36f3e7
5 changed files with 25 additions and 2 deletions
|
|
@ -38,6 +38,8 @@ compdef _git gl=git-pull
|
|||
# Git pull and rebase
|
||||
alias gpr='git pull --rebase'
|
||||
compdef _git gpr=git-pull
|
||||
# Git rebase current master branch against master branch on upstream
|
||||
alias gprum='git pull --rebase upstream master'
|
||||
|
||||
###############
|
||||
# git push (gP)
|
||||
|
|
@ -61,6 +63,10 @@ compdef _git gPd=git-push
|
|||
alias gPf='git push --force'
|
||||
compdef _git gPf=git-push
|
||||
alias gPhm='git push heroku master'
|
||||
# git push origin
|
||||
alias gPof='git push origin'
|
||||
# git push origin force
|
||||
alias gPof='git push origin --force'
|
||||
|
||||
################
|
||||
# Git Fetch (gf)
|
||||
|
|
@ -238,8 +244,8 @@ compdef _git gwc=git-whatchanged
|
|||
alias gls='git ls-files | grep'
|
||||
compdef _git gls=git-ls-files
|
||||
|
||||
alias gpoat='git push origin --all && git push origin --tags'
|
||||
compdef _git gpoat=git-push
|
||||
alias gPoat='git push origin --all && git push origin --tags'
|
||||
compdef _git gPoat=git-push
|
||||
alias gmt='git mergetool --no-prompt'
|
||||
compdef _git gmt=git-mergetool
|
||||
alias gmtvim='git mergetool --no-prompt --tool=vimdiff'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue