[转载] error:Cannot pull with rebase

error:Cannot pull with rebase

https://blog.csdn.net/u012385190/article/details/70670213

2017年04月25日 09:18:46

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栈中读取最近一次保存的内容

猜你喜欢

转载自blog.csdn.net/m0_37962554/article/details/81188330