Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Source control is disabled

Tags:

git

xcode

Fairly straightforward question. When creating an Xcode 8 project, Xcode doesn't give me the option to create a local Git repo. The option is grayed out. Also, in existing projects, all options within the Source Control menu are grayed out. Git is installed on my computer. What's the deal?

enter image description here

like image 544
slider Avatar asked Sep 26 '16 01:09

slider


People also ask

What is Xcode Source Control?

Overview. Source control is the practice of tracking and managing changes to your code. Manage your Xcode project with source control to keep a rich history of the changes you make, and collaborate on code faster and more effectively. Xcode simplifies source control management with its built-in support for Git.

How do I turn off Source Control in Xcode?

In Xcode, choose Xcode-> Preferences, then select Source Control and uncheck Enable Source Control option.

How do I push code from Xcode to GitHub?

Push your projectGo to Source Control in Xcode and select Projectname -- master, then Configure... In the Address field, paste the Git clone URL for your repo copied in the previous step. Select Add Remote, then select Done to finish creating the origin remote for your local Git repo.

How do I add version control to Xcode?

Choose Xcode > Preferences > Accounts, click the Add button (+), select the type of account to add, and click Continue. In the dialog that appears, click the “Create a Token on [Source Control Platform]” button if you don't have a token already.


1 Answers

Have you enabled and configured it via the preferences?

Xcode source control preference

like image 87
JamesWebbTelescopeAlien Avatar answered Sep 17 '22 07:09

JamesWebbTelescopeAlien