在多人协作中,使用git时有冲突是必然的,当git pull 下来代码的时候会出现  <<<<<<< HEAD这些东西,我也没有详细了解过这些,只是知道删除一些代码就可以了。今天查看别人的文章了解看下面的详细描述。

 

 

<<<<<<< HEAD
lalala
=======
hehehe
>>>>>>> xxxxxxxxxxxxxxxxxxxxxxx

分析:head 到 =======里面的lalala是自己的commit的内容

=========到 >>>>>>里面的hehehe是下拉的内容
根据需要删除代码就行了 完事把<<<<<<< ======= >>>>>>都删掉冲突就解决了。

 

相关文章:

  • 2022-01-18
  • 2021-12-17
  • 2022-03-03
  • 2022-01-09
  • 2022-01-16
  • 2021-12-29
猜你喜欢
  • 2022-03-05
  • 2021-12-28
  • 2021-05-28
  • 2021-12-30
  • 2022-02-05
  • 2022-02-25
相关资源
相似解决方案