2

I have an Xcode project with a few commits, and now I would like to load it onto Bitbucket, without losing my commit history. What would be the best way to do this?

2 Answers2

0

You could follow the Import Code into (BitBucket) repo, and select a Git repo on your local workstation.
The fact that this local repo is managed by XCode4 doesn't matter.

After the import, you can add your Bitbucket repo as a remote, with an https address, as mentioned in "Bitbucket + XCode 4.2 + Git" (even though the XCode GUI might not be enough, and some command lines might be needed).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thank you, [Michael Davidovich](http://stackoverflow.com/users/2209092/michael-davidovich), for fixing the broken link. – VonC Apr 17 '13 at 05:14
0

Create a new repository, and push to it from Xcode like normal. It will preserve all of the commit history.