error:Cannot pull with rebase

原文文链接:https://blog.csdn.net/u012385190/article/details/70670213
git 执行git pull –rebase报错误如下:

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

原因:如果有未提交的更改,是不能git pull的

解决:
先执行git stash
再执行git pull –rebase
最后再执行git stash pop

git stash #可用来暂存当前正在进行的工作
git stash pop #从Git栈中读取最近一次保存的内容

原文地址:https://www.cnblogs.com/chongdongxiaoyu/p/11834149.html