Skip to content

Instantly share code, notes, and snippets.

@keicoder
Created February 14, 2014 06:26
Show Gist options
  • Select an option

  • Save keicoder/8996627 to your computer and use it in GitHub Desktop.

Select an option

Save keicoder/8996627 to your computer and use it in GitHub Desktop.
objective-c : Add local repo for existing Xcode 5 Project
//Add local repo for existing Xcode 5 Project
//Close Xcode.app
//Open Terminal.app
$ cd /path/to/project/dir
git init
git commit -a -m Initial
//You'll also want to add a .gitignore file to ignore some of the Xcode project files (Google for the exact list).
//When you open the Xcode project next time it will be ready for Source Code use. If you want a "remote" for the repo you'll need to edit .git/config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment