error:Cannot pull with rebase

Original text link: HTTPS: //blog.csdn.net/u012385190/article/details/70670213
git execute git pull -rebase reported the following error:

error: Cannot pull with rebase: You have unstaged changes.
error: Additionally, your index contains uncommitted changes.

The reason: If there are uncommitted changes, is not the git pull

Solution:
First execute git stash
then execute git pull -rebase
finally execute git stash pop

git stash # can be used to scratch ongoing work
git stash pop # read the last saved content from the stack Git

Guess you like

Origin www.cnblogs.com/chongdongxiaoyu/p/11834149.html