Git Git For Windows

황제낙엽 2016.08.08 13:51 조회 수 : 91

sitelink1 http://cafe.naver.com/ongameserver/8646 
sitelink2  
sitelink3  

[ Package ]

    •Server
        ◦Cygwin ( http://cygwin.com/ )
            - Openssh
            - Git


    •Client
        ◦Git For Windows ( https://code.google.com/p/msysgit/ )
        ◦TortoiseGit ( https://code.google.com/p/tortoisegit/wiki/Download )
        ◦Git Source Control Provider ( http://visualstudiogallery.msdn.microsoft.com/63a7e40d-4d71-4fbb-a23b-d262124b8f4c )

 

[ Server ]

    1.Cygwin ( Openssh + Git ) 설치 (LocalPackage 방식<=만약 인터넷 연결이 되지 않는 사내 서버인 경우)

    2.SSH 설정
        1.서버 설정 ( ssh-host-config )
        2.Daemon Paramaters 는 ( ntsec tty ) 로 세팅
        3.서버 서비스 시작 ( net start sshd / cygrunsrv --start sshd )

    3.계정 설정
        1.퍼미션 설정
            1.chmod +r /etc/passwd
            2.chmod u+w /etc/passwd
            3.chmod +r /etc/group
            4.chmod 755 /var

        2.Git 사용자 계정을 생성하고 Administrators 그룹 포함 (그렇지 않음, ssh 접속 시 퍼미션 오류 발생)
        3.Windows <-> Cygwin 계정 정보 동기화
            1.mkpasswd -l >/etc/passwd
            2.mkgroup -l >/etc/group


    4.Git 저장소
        1.저장소 생성 ( git --bare init ) - 워킹 데이터가 없는 저장소
        2.저장소 퍼미션 정리

 

[ Client ]

    1.저장소 클론
        ◦방법 : git clone SSH계정@서버주소:저장소_경로 로컬 경로
        ◦예제 : git clone mindsteeper@123.111.222.333:RepoGit/PrototypeServer.git ./

 

[ SourceTree ]

    •Repository 등록 시 ssh 계정 비밀번호를 잘못 입력 했을 경우 로컬에 캐시가 되어 계속 저장소 확인이 실패함
    •해결방법
        ◦(계정정보 삭제) C:\Users\[계정이름]\AppData\Local\Atlassian\SourceTree 의 Password 에서 잘못 캐시된 계정/비번 정보 삭제
        ◦(SSH Key 삭제) 레지스트리에서 해당 장비 IP로 검색해서 "rsa2@IP" 키값을 확인 후 삭제

 

 

[ 참고 사이트 ]

http://redky.blogspot.kr/2010/05/cygwin-git.html

http://blog.naver.com/kwlsgy?Redirect=Log&logNo=70134911597

http://netinamu42.blog.me/70147492822

번호 제목 글쓴이 날짜 조회 수
55 VisualSVN svn 프로토콜 열기 (Open SVN protocol on VisualSVN) file 황제낙엽 2018.11.22 518
54 VisualSVN Server Over view 황제낙엽 2018.07.11 67
53 서브버전(subversion) svn locked 오류 해결 황제낙엽 2018.06.11 118
52 Previous operation has not finished; run 'cleanup' if it was interrupted file 황제낙엽 2018.04.02 435
51 Optimize Tortoise SVN Cache (TSVNCache.exe) Disk I/O file 황제낙엽 2018.04.02 177
50 [SVN] VisualSVN 계정 관리 방법 file 황제낙엽 2017.05.26 352
49 [SVN] VisualSVN Server 의 저장소 백업 및 복원 황제낙엽 2016.11.04 2761
48 Git commit 이력(Merge pull request #00 from repo/branch) 깔끔하게 관리하기 file 황제낙엽 2016.10.04 82
47 10분만에 파악해보는 What is GitHub (Hello World) file 황제낙엽 2016.10.04 236
46 태그(Tag) 생성 file 황제낙엽 2016.09.29 344
45 git 에서 CRLF 개행 문자 차이로 인한 문제 해결하기 file 황제낙엽 2016.09.29 572
44 [Git] SourceTree 에서 Global 변수 세팅 file 황제낙엽 2016.09.27 67
43 쓸만한 Git 용 GUI 프로그램 file 황제낙엽 2016.09.26 181
42 Git 관련 참조 URL 황제낙엽 2016.09.13 98
41 Git, Windows 2008 server, ASP.NET, IIS, Bonobo Server, Visual Studio, Msysgit, TortoriseGIT file 황제낙엽 2016.09.13 149
40 Git 설치하기 - Window file 황제낙엽 2016.08.08 53
» Git For Windows 황제낙엽 2016.08.08 91
38 [VSS] 소스 세이프 자동으로 백업하기 황제낙엽 2016.07.12 81
37 [VSS] Using Visual SourceSafe – How to backup & restore VSS DB file 황제낙엽 2016.07.12 7520
36 [VSS] How to force logout of all users on VSS? 황제낙엽 2016.07.12 395