I am using git for the first time, and based on advice from others, I have started using it from the command line rather than from within xcode. After initially committing my project folder, I saw that several files were automatically excluded, including the .xcodeproj file. I added that file and received this error:
E325: ATTENTION
Found a swap file by the name ".git/.COMMIT_EDITMSG.swp"
...
process ID: 8453 (still running)
While opening file ".git/COMMIT_EDITMSG"
dated: Thu Dec 8 08:21:00 2011
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r .git/COMMIT_EDITMSG"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".git/.COMMIT_EDITMSG.swp"
to avoid this message.
Swap file ".git/.COMMIT_EDITMSG.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
I don't know what all this means, but this occurs when Xcode is running and when it is not running, so the part about another program editing the file seems to not be the problem.
As I thought about this, I began to wonder how do I manage the archiving of the project configuration when I am branching? If I don't archive the project file, I imagine that the branches are all using a single project file. This doesn't seem right. So my question is how do I manage the configuration for branches?