How To Use Git Source Control with Xcode 9

Thanks for guide. For anyone not familiar using Git on the command line, I wanted to mention that you can easily use a remote repository other than Github even though Xcode appears to only have support for Github.

After you create your remote repository (for example on Gitlab), take your repository’s .git url, cd into the root of your project directory using the terminal, and use

git remote add origin <your .git url>

And allow keychain to save your credentials, if asked.

Now in Xcode, when you go to Source Control > Push it will push to that repository.