1

When you create a new xcode project, there is a checkbox, which you can check if you want to use a git repository on your mac. I did not check that box, so right now I don't have access to source control resources. How can I start using git with my project?

1
  • Theres a source control section in the menu somewhere where you can check or uncheck 'Enable source control' Commented Jun 19, 2015 at 20:01

1 Answer 1

4

I think you would just need to setup a local git repository.

Open terminal on your Mac and type the following commands:

cd <DirectoryYourCodeIsIn>
git init
git add .
git commit -m 'initial commit'

Also, restart XCode after this is completed.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.