git pull 报错
error: cannot pull with rebase: Your index contains uncommitted changes.
error: please commit or stash them.

解决办法

1、先执行
git stash

2、再执行
git pull –rebase

3、最后再执行
git stash pop


切记 git stash 后一定要 git stash pop 否则代码会丢失

git stash : #可用来暂存当前正在进行的工作
git stash pop: #从Git栈中读取最近一次保存的内容