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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM