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

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

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

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


7、强行切换分支

git checkout -f origin/master

8.从新拉入
git fetch --all

 

相关文章:

  • 2021-08-16
  • 2021-05-29
  • 2022-12-23
  • 2021-11-27
  • 2021-07-03
  • 2022-01-22
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2022-02-19
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-01-01
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案