September 30th, 2015
Filed under: Version Control, Xcode | Be the first to comment!
GitHub and Bitbucket are two of the most popular sites for storing git repositories online. In this article you’ll learn how to create an Xcode project and have it hosted on GitHub or Bitbucket.
NOTE
It may sound obvious, but you must first sign up for an account on GitHub or Bitbucket.
Hosting an Xcode project on GitHub or Bitbucket sounds difficult, but it’s really not. Perform the following steps to host a new Xcode project on GitHub or Bitbucket:
git remote add
and git push
. The git remote add
command makes your newly created GitHub or Bitbucket repository a remote branch of the local repository on your Mac. The git push
command pushes the files under version control from your local repository to the remote repository hosted on GitHub or Bitbucket.
Now you can push changes to GitHub or Bitbucket from Xcode by choosing Source Control > Push.