tags:

views:

41

answers:

1

I'm getting up to speed on using git with XCode but have run into a situation that I'm not quite sure how to handle.

I have a branch of my project "branchA" that has a build target base SDK of iOS 3.2

I have "branchB" that has been forked from branchA that has a build target base SDK for iOS4.2

I'm continuing with development on both branches, branchA with functionality that doesn't depend on SDK4.2 features, branchB for those features that do depend on 4.2

From time to time, I want to merge the changes made in branchA into branchB.
This of course results in some conflicts that I can easily correct -- except those that occur in the .xcodeproj file

How can I tell git not to merge the .xcodeproj file from branchA into branchB -- in essence, keep the .xcodproj file in branchB and ignore any differences it may have with branchA?

+2  A: 

As I detail in this SO answer, you can use

VonC
Awesome -- thanks very much! I'm assuming that wildcard chars are valid in the .gitattributes file? i.e. If I want to 'keepMine' for all files in the .xcodeproj directory, I can use '* merge keepMine' ? (quotes added for demarcation only). Doing so appears to work as I expect, but I'm not familiar enough with the .gitattributes file.
TomH
I think I found my answer regarding using * in the .gitattributes here: http://stackoverflow.com/questions/1910444/git-merge-s-theirs-needed-but-i-know-it-doesnt-exist/1910479#1910479 Thanks Again.
TomH