티스토리 뷰
iOS/자료정리
[Xcode]Git 사용하기 전 .gitignore 설정하기. /첫 clone 후 branch merge가 되지 않을 경우.
감성개발자 썩소천사 2017. 2. 1. 00:00반응형
Xcode에서 Git을 사용하기 위해 선행작업이 필요하다.
SVN에서 그랬듯이 ignore 설정이 그러하다.
gitignore를 설정하지 않을경우 사용자 설정 파일 때문에 Merge가 되지 않는 불상사가 있으니
ignore 설정한 후 clone을 권하는 바이다.
xCode의 다음 경로에서 swift.ignore파일을 참고하여 생성하면 된다.
https://github.com/github/gitignore/blob/master/Swift.gitignore
터미널에서 git이 설정된 경로로 이동
vi .gitignore 명령어 실행
Swift.gitignore 파일의 내용 복사 붙여넣기.
esc 키 누른 후 :wq 입력하게 되면 .gitignore 파일이 생성된다.
Mac에서는 Git 툴인 SourceTree를 사용하면 좀더 직관적이고 편리하게 사용할 수 있다.
참조 : https://xho95.github.io/git/github/xcode/swift/2016/07/15/Making-a-.gitignore-file.html
반응형
'iOS > 자료정리' 카테고리의 다른 글
[ios][object-c]javascript로 웹뷰와 통신중 json변환 및 확인 코드. (0) | 2018.08.20 |
---|---|
[Xcode]Git 사용하기 전 .gitignore 설정하기. /첫 clone 후 branch merge가 되지 않을 경우. (0) | 2017.02.01 |
[iOS] APNS 인증서 생성 명령어 PHP/JSP 용. (0) | 2016.09.22 |
[iOS]Xcode8에서 시스템 Log 가 많이 나올경우 설정방법. (0) | 2016.09.21 |
[iOS]sound, movie 재생 시 speak 활성/비활성화 시키기 (0) | 2016.08.16 |
[iOS] Camera, Photos Access permission /카메라. 앨범/접근 제한/시스템 설정/ (0) | 2016.06.29 |
공유하기 링크
- TAG
- commit, commit your changes or stash them before you can merge. Aborting, error, git, Mac, Merge, Xcode, Your local changes to the following files would be overwritten by merge: gitTest/gitTest.xcodeproj/project.xcworkspace/xcuserdata/enbsoft.xcuserdatad/UserInterfaceState.xcuserstate Please, 맥, 머지, 오류
댓글
공지사항