Search code examples
xcodegitxcode4repository

Create git repository after project creation


I know there's an option to make a local repository for your project when you first create it, but is there an option create a repository after you've created your project?


Solution

  • Sure, just run the following command in your project directory:

    git init
    

    This will create the .git directory containing an empty repository. Then, add and commit your files.