Rebase pull having uncommitted changes
Do you want to pull
with --rebase
option, but you have some uncommitted changes? Do you need to git stash
and git stash pop
every time? Suffer no more with auto stash!
git pull --rebase --autostash origin $(git_current_branch)
or
git config --global rebase.autoStash true
# and then
git pull --rebase
Note: this works only in git 2.6 or newer.
Tweet