Search code examples
iphoneobjective-cxcodegitxcode4

Problem with Git Repository in Xcode 4


In my iPhone app, I am using the in-built Git repository of Xcode 4 so that all the team members can work on the same project.

Now the problem is that even after I commit my changes to the repository, It still shows modified (M) symbol in front of the committed file.

What could be wrong?

I want to ensure that once I commit the changes it should not show "M" for that file.

Is there any setting which I have to do to make it work fine?

What can be done?


Solution

  • The built-in Git repository is a local repository only. How do you share that with your team? If you hooked that repository to GitHub, for example, you will experience problems as the implementation is not 100% reliable. I would use the command line in this case and git add/commit/push the changes. There are discussions and tutorials in the GitHub Blog.