Usually there is a checkbox for whether Xcode project is initiating git when creating new project. However this option is disappear on Xcode 16 (16.2 to be exact).
I've tried (see attached files):
- Check on my Setting > Accounts > Source Control. My github account is there and the SSH key is intact.
- Restarting Mac, then re-open Xcode
But still, no hope.
Ofcourse I still have option to init the git manually on the project via Finder, but that's not my point.
I believe the git init
option is available in the Xcode version you mentioned, which is 16.2. Just after the panel where you declare your Product Name, Team, and other options, click on "Next." A save panel will appear, and you'll see a checkbox for "Create Git repository on my Mac." Alternatively, you can access the "Integrate" menu from the Xcode menu bar and select "New Git Repository..." if you prefer to create your repository later.
I highly recommend creating and managing your repository using Xcode rather than Terminal or any other third-party application. This is because Xcode may crash occasionally if you attempt to modify your repository while the project is open. If you must do so, ensure that you close your project before making any changes outside of Xcode.