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?
            Asked
            
        
        
            Active
            
        
            Viewed 4,029 times
        
    6
            
            
        
        Leo
        
- 71
 - 1
 - 5
 
- 
                    http://stackoverflow.com/a/16369770/2399980 – shmuli Apr 06 '16 at 10:21
 
2 Answers
8
            
            
        Change to your master branch, and then use the option "Merge from branch", and select your branch2.
        Walucas
        
- 2,549
 - 1
 - 21
 - 44
 
0
            
            
        This happened to me too. The problem was that the master branch had uncommited changes (unrelated to the changes in the other one). Switching to master and committing the changes allowed me to merge the feature branch back into master.
        Zoltán Matók
        
- 3,923
 - 2
 - 33
 - 64