原文文鏈接: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棧中讀取最近一次保存的內容