New iOS Dev
New iOS Dev

Reputation: 2057

How to add a git repository in xcode 9.0?

I'm trying to add a remote git repository in xcode project but I'm unable to find an option for that. getting option as

enter image description here

but expecting

enter image description here

Is there any other way to add remote repository to a project?

Upvotes: 32

Views: 25317

Answers (3)

Erinson
Erinson

Reputation: 88

Learning to do git from the console is very easy too use this as a reference

Upvotes: 0

Mehdi
Mehdi

Reputation: 1354

You can use this command in terminal:

git remote add origin https://Your_git_URL.git

Upvotes: 8

Hassan Shahbazi
Hassan Shahbazi

Reputation: 1603

Navigate to Source Control tab right next to the Project Navigator, then right click on your project and select the Add Existing Remote.

enter image description here

Then enter your remote URL.

enter image description here

Upvotes: 72

Related Questions