user1786570
user1786570

Reputation: 23

How do I put a file under source control?

I know this is a simple thing, but I can't find the control for it in Xcode!

I want to do a Commit to Github, but it won't let me as none of my files are under source control.

How do I put my project files under source control?

Upvotes: 0

Views: 1306

Answers (3)

user2308455
user2308455

Reputation:

To import a project into the source control first you must open the terminal and go into the directory of the project and type:

$ git init

$ git ./*

$ git commit -m "Initial commit"

then in Xcode with open the project and with "shift cmd 2" you access the organizer and there you find the repository control

Upvotes: 2

Kim
Kim

Reputation: 1918

I recommend you to use "github mac client"(http://mac.github.com/) which helps you import your project using GUI. It's very easy.

This article might be helpful : http://www.hacheka.com/newbie-guide-for-using-github-in-mac-osx/

Upvotes: 0

Obj-Swift
Obj-Swift

Reputation: 2942

You can set it up in organizer -> Repositories. This tutorial might be helpful to you: http://www.raywenderlich.com/13771/how-to-use-git-source-control-with-xcode-in-ios-6

Upvotes: 2

Related Questions