Nástroje používateľa

Nástoje správy stránok


blog:odborny:2015-07-08-integrating_xcode_project_and_github:assembla

Rozdiely

Tu môžete vidieť rozdiely medzi vybranou verziou a aktuálnou verziou danej stránky.

Odkaz na tento prehľad zmien

Nasledujúca revízia
Predchádzajúca revízia
blog:odborny:2015-07-08-integrating_xcode_project_and_github:assembla [2015/07/08 18:09]
Róbert Toth vytvorené
blog:odborny:2015-07-08-integrating_xcode_project_and_github:assembla [2019/10/08 23:03] (aktuálne)
Róbert Toth socialshareprivacy2 plugin call replaced with socialite
Riadok 8: Riadok 8:
 First part is really simple: First part is really simple:
   - Open Xcode   - Open Xcode
-  - Create new project (File → New → Project…)+  - Create new project: ''File → New → Project…''
   - Check the "Create Git repository on My Mac" option during the project creation   - 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   - Change some files and try commiting the changes, everything should work well
Riadok 16: Riadok 16:
  
 Now, proceed to remote Now, proceed to remote
 +  - create repository
 +  - generate SSH keys to access repository: <code>ssh-keygen -t rsa -f path/to/private/key</code>
 +  - git remote add origin git@github.com:FurloSK/git-test.git
  
  
 ===== Part III: Connecting local and remote repositories ===== ===== Part III: Connecting local and remote repositories =====
  
 +  - TODO generate SSH keys
 +  - Create ''config'' file in ''~/.ssh/'' directory: <code>touch config</code>
 +  - Open the file: ''open config''
 +  - Paste this text into file, edit the ''IdentityFile'' path to match path to generated private key and save the file: <code>Host github.com
 + HostName github.com
 + User git
 + IdentityFile "~/Path/To/Private/SSH/key"</code>
 +  - Optionally, exclude files you do not want to be pushed to remote repository:
 +    - Create ''.gitignore'' file: ''touch .gitignore''
 +    - Open the file: ''open .gitignore''
 +    - Supply line-divided array of excluded files and directories
 +    - Sample file for Objective-C ''.gitignore'' file from GitHub is here: [[https://github.com/github/gitignore/blob/master/Objective-C.gitignore]]
 +    - Finally, push last commited local changes to remote directory:
 +      - in Xcode: ''Source Control → Push…''
 +      - in Terminal: ''git push -u origin master''
  
-~~DRAFT~~ +===== Further reading ===== 
-TODO+  * ssh help: [[https://help.github.com/categories/ssh/]] 
 +  * assembla: [[http://stackoverflow.com/questions/26501262/xcode-6-source-control-with-assembla-fatal-repository-https-xxxsubversion-a]] 
 +  * Getting Xcode and GitHub to work together: [[http://www.pavley.com/2013/06/12/getting-xcode-and-github-to-work-together-like-besties/]] 
 +  * [[http://www.raywenderlich.com/13771/how-to-use-git-source-control-with-xcode-in-ios-6|How To Use Git Source Control with Xcode in iOS 6]] 
 +  * [[http://www.cimgf.com/2013/12/10/using-git-in-xcode/|Using Git in Xcode]]
  
-{{socialshareprivacy2}} + 
-{{tag>draft howto, manual}}+~~socialite~~ 
 +{{tag>howto, manual}}
  
  
blog/odborny/2015-07-08-integrating_xcode_project_and_github/assembla.1436371785.txt.gz · Posledná úprava: 2015/07/08 18:09 od Róbert Toth