使用git pull报错的时候可使用 git stash
2019-05-20 本文已影响0人
polelice
error: cannot pull with rebase: Your index contains uncommitted changes.
报该错时候可使用
先执行git stash
再执行git pull –rebase
最后再执行git stash pop
切记 git stash 后一定要 git stash pop 否则代码会丢失
git stash: #可用来暂存当前正在进行的工作
git stash pop: #从Git栈中读取最近一次保存的内容