2

以前にSVNリポジトリを作成しました。今、私がやりたいのは、特定のファイルを更新する必要がないため、特定のファイルが更新されないようにすることです。リポジトリを作成する過程で解決策を見ましたが、ずっと前にそれを行ったので、今はいくつかのファイルを除外したいと思います。

状況は次のようになります。

repo/
updateme.txt
donotupdateme.txt

ここでは、updateme.txtが更新操作で変更されている間、donotupdateme.txtを同じままにしておきたいと思います。

ps私はTortoiseでこれを行うことを好みます。

4

2 に答える 2

2

SVN プロパティを使用します。特に、svn:ignore に興味があります。

TortoiseSVN を使用すると、これは簡単です。作業コピーで、無視するファイル (donotupdateme.txt) を右クリックして、TortoiseSVN -> Unversion を選択し、無視リストに追加 -> donotupdatme.txt を選択します。

これにより、ファイルがコミット/更新されなくなります。

詳細については、 http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-ignore.htmlを参照してください。

お役に立てれば!

于 2012-07-13T13:35:16.833 に答える
0

You can create a /etc/svn/config file with a list of files to ignore (or the windoze equivilent) or you can edit the properties of the directory the file is in with a svn ignore.

See his post on how to do ignores: How do I ignore a directory with SVN?

I am sure tortoise has a way to right click edit ignore property for a file... Check this--i found it by googling 'svn ignore files tortiose'

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-ignore.html

于 2012-07-13T13:26:43.060 に答える