Scale-of-evaluation / daily-question

This repo is used to help you better understand the world,Enjoy!
MIT License
4 stars 2 forks source link

【09.05】Git 冲突是如何产生的及如何解决冲突? #270

Open Derek-94tm opened 2 years ago

Derek-94tm commented 2 years ago

请在下方作答。

changjl317 commented 2 years ago

产生:多个开发者同时使用或者操作git中的同一个文件,最后在依次提交commit和推送push的时候,第一个操作的是可以正常提交的,而之后的开发者想要执行pull(拉)和pull(推)操作的时候,就会报冲突异常conflict。 解决:保留自己修改的数据,同时保留别人的数据信息;同时pull代码之前,需要手动解决冲突之后再作提交。