1

When I add some new files to my project (I've created a source repository for this project already), these files are not added to source repository at all. I go through my whole project and I found some of the files are in repository but some are not.Why like this? How to solve the problem?

Thanks

Bagusflyer
  • 12,675
  • 21
  • 96
  • 179

2 Answers2

0

Xcode uses git (by default) to manage version control. By default, new added files are not tracked by git. To add them to git, right click on them and click Source Control>Add. To commit the changes go File>Source Control>Commit... (or Command-Option-C)

Stone Mason
  • 2,015
  • 2
  • 16
  • 19
  • The problem is if I added some files (.h and .m), The "A" status are not shown sometimes. – Bagusflyer Jul 17 '12 at 04:48
  • Once you add some files, have you tried right clicking them and clicking Source Control>Add? Does that not give the "A" status for them for you? – Stone Mason Jul 31 '12 at 06:32
0

Looking at the XCode documentation, check also the status of those non-versioned files.

staus

Some of those might be ignore by your source control tool (SVN or git) due to, for instance, a .gitignore you can add to your project (or like this one).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250