2012-09-05 2 views

답변

1

hg forget dir_name/을 사용하면 dir_name이라는 추적 디렉터리를 반복적으로 중지 할 수 있습니다. hg forget

더 많은 정보는 :

hg forget [OPTION]... FILE... 

forget the specified files on the next commit 

    Mark the specified files so they will no longer be tracked after the next 
    commit. 

    This only removes files from the current branch, not from the entire 
    project history, and it does not delete them from the working directory. 

    To undo a forget before the next commit, see "hg add". 

    Examples: 

    - forget newly-added binary files: 

     hg forget "set:added() and binary()" 

    - forget files that would be excluded by .hgignore: 

     hg forget "set:hgignore()" 

    Returns 0 on success. 

options: 

-I --include PATTERN [+] include names matching the given patterns 
-X --exclude PATTERN [+] exclude names matching the given patterns 
    --mq     operate on patch repository 
+0

또한 다른 클라이언트가 있기 때문에 그들이 정말 – zerkms

+0

삭제됩니다 풀 업데이트에 어딘가에 해당 파일을 복사해야합니다 IIRC!? 너무 위험합니다. 카이가 나에게 경고하지 않는 이유!? – qazwsx

+1

@ user001 디렉토리를 무시하고 싶을 때 예상되는 동작이라고 말할 수 있습니다. 나는 이것이 다른 유형의 커밋보다 더 위험하다는 것도 알지 못합니다. 모든 것이 여전히있을 때 항상 이전 버전으로 되돌릴 수 있습니다. 이것은 버전 컨트롤을 사용하는 지점입니다. 다른 클라이언트가이 파일들을 보관할 필요가 있다면,'hg forget dir_name'을 실행할 수도 있습니다. –

관련 문제