How to automatically add / ignore files of a certain type when created in SVN version folders

I have a folder running SVN. And since I will be creating files on a fast basis, I want some file types to be added and some file types to be automatically ignored right after the moment the file is created.

As an example, I would like to copy the folder containing the extension type sln

to csproj

both cs

the original control, and whenever I create a new file .cs

, I want this. cs files that will be immediately added to the repository. And I don't want the files to be .pdb

added to the reopository, so whenever a new one is created .pdb

, it should be automatically added to the ignore list.

Edit: I'm looking for a GUI way to do this, instead of using the command line .

Any idea how to do this?

+2


source to share


1 answer


I don't know how to auto-copy files via the TortoiseSVN GUI, so I would choose a script to do this.



However, they give you an easy way to ignore file types through a GUI. If you open the TortoiseSVN settings (right click → TortoiseSVN → Settings) and look at the General section, you will see a text field that says Global Ignore Pattern. This is a space-separated list of name patterns. To add PDB files to the ignore list, add "* .pdb" to the end of the list.

+1


source







All Articles