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
but expecting
Is there any other way to add remote repository to a project?
Go 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.
Once you authenticate into Xcode with your GitHub account, the “Open in Xcode” button will appear for relevant repositories on GitHub. Click the button and Xcode will launch, prompting you to choose a directory to clone the repository to your local machine. Happy cloning!
Navigate to Source Control
tab right next to the Project Navigator
, then right click
on your project and select the Add Existing Remote
.
Then enter your remote URL.
You can use this command in terminal:
git remote add origin https://Your_git_URL.git
Learning to do git from the console is very easy too use this as a reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With