Xcode/git not working with subfolders

I have git set up with my Xcode project. I’m trying to add a subfolder (e.g. My Project Dir/Resources) and track changes. However, after I drag the subfolder into Xcode, it’s not being change tracked. Why?

  • NSTask and Git — Permissions issues
  • Which SCM system for Xcode?
  • Should I merge .pbxproj files with git using merge=union?
  • Should git ignore the *.pch files created by XCode?
  • Github-like Issue and Milestones Tracking in Xcode 5
  • Third-Party Code and Git
  • Can git be integrated with Xcode?
  • Create new JUnit test and run with git bisect
  • Zend studio creates empty index.php file
  • How do I manage source code and accompanying documentation properly with git?
  • “forking” own project in git
  • Git pre commit and pre push hook for sonar runner
  • One Solution collect form web for “Xcode/git not working with subfolders”

    1. Drag the folder to Xcode. Make sure it is either in the right place or that you also copy it.

    2. Select the files in the project browser and choose “File->Source Control->Add”. Alternatively, hit altcmdA.

    Alternatively, go to your directory in Terminal and type

       git add NewFolder
    
    Git Baby is a git and github fan, let's start git clone.