当云上的代码和本地代码冲突时,

先把本地代码中冲突的文件add,并commit,不要push

git 代码冲突 webstorm

接下来拉取云上的代码到本地

git 代码冲突 webstorm

到webstorm上去把冲突合并,VCS → Git  → Resolve Conficts

git 代码冲突 webstorm

选要合并的文件,merge,并对比把云上的代码合并到本地代码上

git 代码冲突 webstorm

合并完,点Apply

git 代码冲突 webstorm

 

相关文章: