Xcode合并分支,在添加一些新文件时提醒树冲突 [英] Xcode merge branch,remind tree conflict when add some new file

查看:134
本文介绍了Xcode合并分支,在添加一些新文件时提醒树冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建分支2并添加一些新的类文件,当我合并到主分支时,Xcode提醒我们:文件ViewModel.h,ViewModel.m存在树冲突

如果我只编辑一些代码但不添加新文件,它会好的,但是我应该如何解决这个问题?

I create a branch2 and add some new class file,when i merge into master branch,Xcode reminds us:"The files ViewModel.h,ViewModel.m had a tree conflict"
If I just edit some code but not add new file,it will be ok,but how should i solve this problem?

推荐答案

更改为您的主分支,然后使用选项从分支合并,并选择您的分支2。

Change to your master branch, and then use the option "Merge from branch", and select your branch2.

这篇关于Xcode合并分支,在添加一些新文件时提醒树冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆