How to configure Xcode with BitBucket

Viewed 6033

I have created a repo. on bitbucket. Now I want to connect that repo to the Xcode 9.So I can directly push, pull and do all the git stuff from Xcode.

is there any way to do that?

thanks!!!

5 Answers
  1. If the project folder is already on your computer, and is already under git control, skip this first step. Otherwise, use the command line, or Xcode's Source Control > Clone dialog, to clone your bitbucket repo onto your computer.

  2. Open the project in Xcode and work with it.

  3. There is no step 3! Xcode will see that this repo is under git control and you'll be able to use Xcode's built-in source control features as usual.

You can actually add real Github* account to your Xcode under Xcode/Preferences/Accounts.

This will actually do authentication when you checkout Bitbucket project after that. I guess that they joined user databases.

I had exactly the same problem as You had. To solve it I created a project with a git version control within Xcode 9 and then someone asked me to share it. To do it I created an empty repo on bitbucket, copied its address and then went in terminal to my project's directory.

cd ~/repos/<repo_name>

Once there you just have to write

git push --mirror *copiedRepoAddress

Make sure that the repository you created at bitbucket is EMPTY and that you have commited all changes on your local repo.

Just follow below steps your project will be added automatically to bitbucket.

1.Go to Source Controller ---> create git repository enter image description here

once click on create option.

2.Open your Bitbucket account and create new repository.And choose i have an existing project. 3.Select your repository address. enter image description here

enter image description here

enter image description here

Related