Hgでは、サブディレクトリと含まれているファイルの一部がすでに追跡されている場合に、ディレクトリを再帰的に無視するにはどうすればよいですか?それらをファイルシステムに保持したいのですが、バージョン管理はしていません。ファイルシステムからディレクトリを削除したくありません。
1 に答える
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
于 2012-09-06T00:22:48.833 に答える