title: How do I stop XCode 4 from modifying a local Git repository?
body: <p>I have a Git repository, which for my own reasons I want to manage outside of XCode 4. Really what I want is XCode to just leave my repository alone. However, I've noticed that XCode will add new projects to the repository if they're saved inside the repository.</p>
  
  <p>For example, suppose I start out with a plain ol' repo:</p>
  
  <pre>
  mkdir gittest; cd gittest
  git init; touch a; git add a; git commit
  </pre>
  
  <p>I fire up XCode and create a new project. NOTE: I do <em>not</em> have the "Create local git repository for this project" checkbox checked. For the destination dir, I save it to the directory <code>gittest</code>.</p>
  
  <p><code>git status</code> reveals:</p>
  
  <pre>
  # On branch master
  # Changes to be committed:
  #   (use "git reset HEAD ..." to unstage)
  #
  #   new file:   gittest/gittest.xcodeproj/project.pbxproj
  #   new file:   gittest/gittest/en.lproj/InfoPlist.strings
  #   new file:   gittest/gittest/gittest-Info.plist
  #   new file:   gittest/gittest/gittest-Prefix.pch
  #   new file:   gittest/gittest/gittestAppDelegate.h
  #   new file:   gittest/gittest/gittestAppDelegate.m
  #   new file:   gittest/gittest/iPad/en.lproj/MainWindow_iPad.xib
  #   new file:   gittest/gittest/iPad/gittestAppDelegate_iPad.h
  #   new file:   gittest/gittest/iPad/gittestAppDelegate_iPad.m
  #   new file:   gittest/gittest/iPhone/en.lproj/MainWindow_iPhone.xib
  #   new file:   gittest/gittest/iPhone/gittestAppDelegate_iPhone.h
  #   new file:   gittest/gittest/iPhone/gittestAppDelegate_iPhone.m
  #   new file:   gittest/gittest/main.m
  #
  # Changed but not updated:
  #   (use "git add ..." to update what will be committed)
  #   (use "git checkout -- ..." to discard changes in working directory)
  #
  #   modified:   gittest/gittest.xcodeproj/project.pbxproj
  #
  # Untracked files:
  #   (use "git add ..." to include in what will be committed)
  #
  #   gittest/gittest.xcodeproj/project.xcworkspace/
  #   gittest/gittest.xcodeproj/xcuserdata/
  </pre>
  
  <p>It's clear that XCode is modifying a git repository that it has not been told to manage.</p>
  
  <p>Has anyone encountered this before? I'm assuming that this is a feature and that there's some preference to disable it, but for the life of me I can't find it.</p>