Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove git from project in Xcode 4

Tags:

git

xcode

I just created a new project in Xcode 4 and I guess I left the "Create local git repository for this project" box checked. Now, I would like to remove this version control since I want to run the project with svn only. Is this possible or do I have to create a new project from scratch?

like image 997
pajevic Avatar asked Apr 02 '11 22:04

pajevic


People also ask

How do I remove git from Xcode?

The local git repository is stored in a folder named . git inside your project folder. It's hidden (any file/folder starting with a . is) but you can delete or move it using the Terminal. Once it's gone, your folder will no longer be recognized as having a git repository.

How do I turn off source control in Xcode?

In Xcode, choose Xcode-> Preferences, then select Source Control and uncheck Enable Source Control option.


2 Answers

I had the same problem. Here are the steps to resolving this.

  1. Go to the Organizer (under window menu option)
  2. Go to Repositories
  3. Look at the bottom left corner for the minus button
  4. Select the project to be removed from GIT
  5. Press the minus icon
  6. It should be removed

This works, even though the class files still have the symbol next to them. Clicking them then clicking another file gets rid of the icon.

Hope this works.

like image 78
Jjack Avatar answered Oct 01 '22 12:10

Jjack


Just remove the .git directory in the project folder. You should close the project in Xcode first to be safe.

like image 24
Firoze Lafeer Avatar answered Oct 01 '22 11:10

Firoze Lafeer