Skip to content

Instantly share code, notes, and snippets.

@DomiR
Last active December 16, 2015 01:59
Show Gist options
  • Save DomiR/5358820 to your computer and use it in GitHub Desktop.
Save DomiR/5358820 to your computer and use it in GitHub Desktop.

Add git to existing Xcode 4 project

It's easier than you might think, so let's take a closer look at it. We will use the Mac Terminal app to accomplish our goal.

cd #path to projectfolder         // Change directory to projectfolder
git init                          // Init the git repository in  
git add .                         // Add this folder to the created git repo
git commit -m "Initial commit"    // Commit the files with arbitary message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment