git pull 冲突

Posted hurryxin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git pull 冲突相关的知识,希望对你有一定的参考价值。

1. 问题描述

error: Your local changes to the following files would be overwritten by merge:
xxx/xxx/xxx
Please, commit your changes or stash them before you can merge.
Aborting

2. 解决方案

2.1 stash

git stash
git pull
git stash pop

2.2 放弃本地修改

git reset --hard
git pull

以上是关于git pull 冲突的主要内容,如果未能解决你的问题,请参考以下文章