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