概述
error log:
your local changes would be overwritten by merge. commit stash or revert them to proceed. view them
You can't merge with local modifications. Git protects you from losing potentially important changes. You have three options. One is to commit the change using
git commit -m "My message"
The second is to stash it. stashing acts as a stack, where you can push changes, and you pop them in reverse order.
To stash type:
git stash
Do the merge, and than pull the stash:
git stash pop
The third options is to discard the local changes using git reset --hard
.
http://stackoverflow.com/questions/15745045/how-do-i-resolve-git-saying-commit-your-changes-or-stash-them-before-you-can-me
最后
以上就是现代戒指为你收集整理的your local changes would be overwritten by merge. commit stash or revert them to proceed. view them的全部内容,希望文章能够帮你解决your local changes would be overwritten by merge. commit stash or revert them to proceed. view them所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复