blog:odborny:2015-07-08-integrating_xcode_project_and_github:assembla
Toto je staršia verzia dokumentu!
Integrating Xcode project and GitHub / Assembla
This short article will guide you step‑by‑step through creating Xcode project with local and remote Git repository (GitHub or Assembla) using SSH public/private keys authentication on remote side.
Part I: Creating Xcode project and local repository
First part is really simple:
- Open Xcode
- Create new project:
File → New → Project… - Check the “Create Git repository on My Mac” option during the project creation
- Change some files and try commiting the changes, everything should work well
Part II: Creating remote repository
Now, proceed to remote
Part III: Connecting local and remote repositories

- Create
configfile in~/.ssh/directory:touch config
- Open the file:
open config - Paste this text into file, edit the
IdentityFilepath to match path to generated private key and save the file:Host github.com HostName github.com User git IdentityFile "~/Path/To/Private/SSH/key"
- Optionally, exclude files you do not want to be pushed to remote repository:
- Create
.gitignorefile:touch .gitignore - Open the file:
open .gitignore - Supply line‑divided array of excluded files and directories
- Sample file for Objective‑C
.gitignorefile from GitHub is here: https://github.com/github/gitignore/blob/master/Objective-C.gitignore 
Komentáre
blog/odborny/2015-07-08-integrating_xcode_project_and_github/assembla.1436372618.txt.gz · Posledná úprava: 2015/07/08 18:23 od Róbert Toth
