git 没拉代码就提交重出现 error: cannot pull with rebase: Your index contains uncommitted changes.

错误内容

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

处理方法

git stash 
git pull --rebase 
git stash pop

或
git stash  后 在  idea 重新拉代码就好了

猜你喜欢

转载自blog.csdn.net/qq_41463655/article/details/109242521