Force rebase on pull action

Nobody likes merge commits on pull, cause they pollute history
This commit is contained in:
Stanislav Mekhonoshin 2013-05-14 11:36:23 +04:00
commit fcc982da8e

View file

@ -93,11 +93,11 @@ function current_repository() {
}
# these aliases take advantage of the previous function
alias ggpull='git pull origin $(current_branch)'
alias ggpull='git pull --rebase origin $(current_branch)'
compdef ggpull=git
alias ggpush='git push origin $(current_branch)'
compdef ggpush=git
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
alias ggpnp='git pull --rebase origin $(current_branch) && git push origin $(current_branch)'
compdef ggpnp=git
# Pretty log messages