Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Putting existing project under source control in Xcode 4.3.2

I was looking for a way to put my existing project under source control, and I looked at this question, but it looks like that solution only worked with Xcode 4.0 because I can't find a way to do what is advised. I also looked at this question, but that solution doesn't work either because my project isn't currently under source control. How can I get my existing project under source control?

Edit

I want it to be a git repository, not subversion.

like image 646
Carter Pape Avatar asked Jun 15 '12 15:06

Carter Pape


People also ask

How do I enable source control in Xcode?

While you can certainly use the Source Control navigator as you learned earlier, there is another way. Click and hold on the Version Editor button and select Log. You can also choose View\Version Editor\Show Log View from the menu. Xcode will list the commits that contain changes to the current file.


1 Answers

you can do it in terminal using:

cd /to/app/folder

git init
git add .
git commit -am 'a descriptor of your first commit'

This should then be picked up in Xcode, you may need to close and re-open

Hope it helps

like image 178
geminiCoder Avatar answered Oct 18 '22 01:10

geminiCoder