· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Git(version Control System)

Git (Version Control System)

Git 서버 세팅


public repository

저장소는 다음처럼 만든다.
$ git clone --bare ~/proj proj.git
$ touch proj.git/git-daemon-export-ok

다음처럼 git-daemon을 돌리면 누구나 받아볼 수 있다.
# git deamon --detach

$ git clone git://server/~your_id/proj.git



shared repository


TIPS

특정 파일 변경 무시하기

특정 파일을 무시하려면 .gitignore라는 파일을 만들고 무시할 파일의 이름을 등록하면 된다.

단, 이것은 해당 파일이 저장소에 아직 등록되지 않았을 경우에만 작동한다. 이미 트래킹되고 있는 파일의 경우에는 .gitignore의 패턴과 일치하더라도 계속해서 트래킹된다.

이미 저장소에서 트래킹되고 있는 파일인데 변경 사항을 무시하고 싶을 때가 있다. 예를 들어, 환경 설정 파일이 있어서 내 시스템에서 테스트하기 위해 일부 변수를 바꾸었다고 하자. 이런 것은 commit하고 싶지 않을 것이다. 다음과 같이 파일 이름을 명시해서 명령을 내린다.

$ git update-index --assume-unchanged <do-not-commit-this-file>

관련 링크


ID
Password
Join
You will hear good news from one you thought unfriendly to you.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-08-14 13:28:48
Processing time 0.0050 sec