git pull --rebase 报错 error: cannot pull with rebase: Your index contains uncommitted changes.
Posted 闭关苦炼内功
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git pull --rebase 报错 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 status
git pull
vi file-demo
git add file-demo
git commit
git push
git status
以上是关于git pull --rebase 报错 error: cannot pull with rebase: Your index contains uncommitted changes.的主要内容,如果未能解决你的问题,请参考以下文章
git pull 报错 error: cannot pull with rebase: Your index contains uncommitted changes.
git pull 报错 error: cannot pull with rebase: Your index contains uncommitted changes.
Git----拉取远程分支,git pull,git rebase,git pull --rebase的区别
Git----拉取远程分支,git pull,git rebase,git pull --rebase的区别