11

My Xcode project is on git, but I don't like the XCode git integration and sometime, I have errors coming from Xcode

So I would like to completely remove that feature of XCode. I tried to remove the repository in Organizer->Repository (but after a while, it comes up again).

Any idea?

Community
  • 1
  • 1
Samuel
  • 5,439
  • 6
  • 31
  • 43
  • What's wrong with just unticking the git checkbox when creating a new project? – Segev May 21 '13 at 10:00
  • I wouldn't try that personally, but maybe this helps: http://stackoverflow.com/a/6586957/14955 – Thilo May 21 '13 at 10:00
  • @Sha : I did ticked the git checkbox when creating the project. But my project is on git, so XBox automatically wants to manage it with git, but I prefer to do it outside of XCode – Samuel Jun 06 '13 at 09:38
  • @Thilo : thanks, that's the answer of justin too – Samuel Jun 06 '13 at 09:39

4 Answers4

16

It's unsupported, but it has appeared to work fine for me in the past:

  • Quit Xcode
  • Remove this bundle from its folder: Xcode.app/Contents/Plugins/IDEGit.ideplugin or change the bundle's extension.
  • Restart Xcode

This disables the extension which provides git support in Xcode. You can still use Git for version control -- just not in Xcode.

justin
  • 104,054
  • 14
  • 179
  • 226
11

Remove git functionality from Xcode 9 by disabling it in the preferences pane:

  1. Open Xcode
  2. Type ⌘, (or Xcode menu > Preferences... row)
  3. Switch to the Source Control pane
  4. Toggle Enable Source Control off

enter image description here

Matt Robinson
  • 799
  • 7
  • 22
2

If you want to disable Git support in Xcode 4 you'll have to rename "/Developer/Library/Xcode/PrivatePlugIns/IDEGit.ideplugin" to something other than .ideplugin

Have a look at this: Remove git from project in Xcode 4

It doesn't work in Xcode 4.2.1

You will have to remove the local git file. Refer to this: http://thompsonng.blogspot.sg/2012/03/xcode-remove-local-git-repository.html

Community
  • 1
  • 1
lakshmen
  • 28,346
  • 66
  • 178
  • 276
  • 1
    According to comments on the linked answer, this doesn't work anymore. Workaround also in comments. And maybe community-wiki answers copied. – Thilo May 21 '13 at 10:02
0

Maybe what you wanted is only to deactivate version control in XCode, which is the same thing if you use git or SVN or whatever. If that's the case, check here: Xcode 5 - remove source control for project

I know that this thread is old, but if new people arrive here, this might be the right answer.

Cícero

Community
  • 1
  • 1
cicerocamargo
  • 1,046
  • 9
  • 9