아파치 conf / httpd.conf 파일 Define SRVROOT "D:\Program Files\Apache24" ServerRoot "${SRVROOT}" -- 아래의 모듈을 주석 해제한다. LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dav_lock_module modules/mod_dav_lock.so 아파치 conf / extra / httpd-dav.conf 파일 DavLockDB "${SRVROOT}/var/DavLock" Alias /3618 "E:\Git" <Directory "E:\Git"> Dav On Options All AuthType Basic AuthName DAV-upload # You can use the htdigest program to create the password database: # htdigest -c "${SRVROOT}/user.passwd" DAV-upload admin AuthUserFile "${SRVROOT}/user.htpasswd" AuthDigestProvider file Require valid-user <<<<<< User의 경우 valid-user 로 해주어야 한다. # Allow universal read-access, but writes are restricted # to the admin user. <LimitExcept GET POST OPTIONS> require user admin </LimitExcept> </Directory> |
htpasswd -c passwd.git |
아파치 실행후 ........
저장소로 만들 위치에서 아래의 명령어 실행. git --bare init git update-server-info <<<< 이것을 하지 않으면 저장소를 찾을 수 없다고 나온다. |
저장소에 있는 자료 복사해 오기. 콜론(:)을 구분자로 아이디:비번을 넣는데. git clone http://아이디:비번@192.168.0.6/3618 |
'Technical Report' 카테고리의 다른 글
C# 콘솔 윈도우 띄우기 & 소스 정보 보기 (0) | 2015.11.26 |
---|---|
윈도우7 의 스티커 메모의 텍스트 서식 지정 (0) | 2014.07.19 |
기본적인 OpenGL 함수 정리 (0) | 2014.07.06 |
Microsoft Windows SDK for Windows 7 and .NET Framework 4 설치 시 에러 해결방안 (0) | 2014.06.25 |
[vbs] 특정 경로 탐색기(explorer) 열기. (0) | 2014.05.26 |