解决git爆错2018-12-14

1.git pull时报错

error: You have not concluded your merge (MERGE_HEAD exists).

hint: Please, commit your changes before merging.

fatal: Exiting because of unfinished merge.

解决:

解决办法一:保留本地的更改,中止合并->重新合并->重新拉取

$:git merge --abort$:git reset --merge$:git pull

解决办法二:舍弃本地代码,远端版本覆盖本地版本(慎重)

$:git fetch --all$:git reset --hard origin/master$:git fetch

参考链接:https://blog.csdn.net/feng2qing/article/details/56496441

你可能感兴趣的:(解决git爆错2018-12-14)