What about using autostash ?

This is quite a nice feature from git. I'm not sure if it's better adding it to gup / gupv, or if it should be added to a new alias :)
This commit is contained in:
Poyoman 2018-05-03 22:56:18 +02:00 committed by GitHub
commit f7b2228a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,8 +240,8 @@ alias gtv='git tag | sort -V'
alias gunignore='git update-index --no-assume-unchanged'
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
alias gup='git pull --rebase'
alias gupv='git pull --rebase -v'
alias gup='git pull --rebase --autostash'
alias gupv='git pull --rebase --autostash -v'
alias glum='git pull upstream master'
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'