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?

  • How to capitalize Xcode, Git, git, and HEAD
  • Authentification issue when pushing Xcode project to GitHub
  • Xcode. Scheme is missing on one branch
  • Facebook SDK does not work after bitbucket pull in other computer with Xcode project
  • Xcode git Auto-Detect Email Error
  • working with Xcode and version control tool
  • Github-like Issue and Milestones Tracking in Xcode 5
  • Mac Os X - Xcode4 and remote git-repository (and a local repository on the Mac)
  • 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.