2015년 3월 16일 월요일

xcode 에서 존재하는 프로젝트를 git server 에 add

1. git server
1-1. remote repository 로 이동하여 다음을 차례로 수행
1-2. su git
1-3. git init --bare --shared iOS.git

2. local ( mac )
2-1. mac console 을 사용해서 존재하는 프로젝트로 이동 ( *.xcodeproj 가 존재하는 폴더 ), 예) cd /Users/pointermans/Documents/Work/iGen/iOS
2-2. console 에서 git init
2-3. console 에서 git add .
2-4. xocde - Source Control - iOS master - Configure iOS 메뉴로 선택, Remotes 탭 선택, 왼쪽 하단의 Add Remote 선택
2-5. Name 은 origin, Address 는 ssh://pointermans@git서버아이피/git-repos/iGen/iOS.git 입력, 암호 입력
2-6. xocde - Source Control - commit 후 Push 한다

댓글 없음: