Aaron Wardle
Mobile & Web Software Developer
  • Home
  • Mobile Apps
  • Blog
  • About
Select Page ...

Blog

XCode - Creating a git repository for an existing project

admin July 19, 2011 Uncategorized 1 Comment

Today I spent ages trying to create a git repository for my existing XCode projects, after much googling and trial and error I finally worked it out.

My problem was that my Mac / XCode expects git to be in /usr/bin/git so I just had to create a symlink

1) sudo ln -s /usr/local/git/bin/git /usr/bin/git

2) CD to your project folder

3) Type git init

4) Type git add .

5) Type git commit -m “Initial Commit”

6) Re open XCode and it should now be working under the newly created git repository.

 

 

← My thoughts on the iPad so far.
Preparing for WWDC 2012 – New Business Cards →
admin

One Response to XCode – Creating a git repository for an existing project

  • Jules
    8 / 21 / 2011

    I didn’t have the step one problem, as I recall. But it was a while ago. Think git is in the path. Remember the last steps.

    I think on the front screen of Xcode there’s an option to do this, I may be wrong

    Jules 8 / 21 / 2011
    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

WP-SpamFree by Pole Position Marketing

  • Categories

    • Development Tips
    • Game Development
    • iPhone App Talk
    • Tutorials
    • Uncategorized
    • Website Talk
  • Twitter Updates

    • No public Twitter messages.
  • Links

    FreeAgent Small Business Online Accounting

    • Photos on flickr

    • Aaron Wardle

      Feel free to follow me on any of the social networks below.

    • EmailLinkedInTwitter
    Copyright © 2014 Smart PC Solutions Ltd. All Rights Reserved