error: cannot pull with rebase: Your index contains uncommitted changes.

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
支持一下

0

添加新评论