Xcode 4 + git (part 3)
Xcode 4 + git (part 3)
- Subject: Xcode 4 + git (part 3)
- From: Quincey Morris <email@hidden>
- Date: Wed, 23 Mar 2011 17:17:34 -0700
> On Mar 23, 2011, at 13:10, Luther Baker wrote:
>
> +1 for using .gitignore. You may want to include the following entries as well:
>
> build
> .*
> *.mode1v3
> *.pbxuser
>
> On Wed, Mar 23, 2011 at 2:47 PM, David Duncan <email@hidden> wrote:
>
>> On Mar 23, 2011, at 12:13 PM, Quincey Morris wrote:
>>
>>> I think it's even a bad idea to try and put the workspace "file" (i.e. package) under SCM control, because Xcode changes it too often. At least several times during my marathon, when I *did* have the workspace package under SCM, I couldn't push to the remote server because something part of getting to the menu item dirtied one of the private state files, so I just got told to commit first, which just took me round in a circle. But maybe that was a different problem.
>>
>> We use a .gitignore file with ".DS_Store" and "xcuserdata/" entries to avoid this. Just put it at the root of your repository and you should be set.
Part 3 of this saga is where I have to back down some. *Today*, now that I seem to have really removed the workspace file from the repository, committing and pushing from the workspace window works fine. Go figure!
Furthermore, I notice that in the commit sheet from the workspace window, there's a third list-style option icon whose tooltip is "By Project". So apparently workspaces weren't forgotten in the design phase after all. It's just a pity that you can't (apparently) use the workspace as the root of a cluster of projects that live in a remote repository. (Perhaps you can, but if so it's not clear how to get this all going.)
I also created a .gitignore as above, and that helps. I even put the .gitignore file in the project, so that I can fiddle with it from within Xcode. Thanks for the tip!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden