As part of my ritual of adding a directory/project to my source control repository at home using Subversion and Tortoise, I always go into the repository and remove all of the files that I do not want to be source controlled. These are files such as *.PDB, *.EXE, etc. I don't want these to be under source control because Tortoise will see a change to these files when I build the application - even if I haven't actually touched source code. This causes the red exclamation indicator to turn on for my project folder - which sends my OCD reflex through the roof.
So I found a simple answer to this problem tonight. You can configure Tortoise to not check in files and/or folders with extensions that you specify.
First, right click on any folder in windows explorer that is under source control. In the context menu go to TortoiseSVN -> Settings.
You should see:
Now when you check import a new project, the files with the extensions in the 'Global ignore pattern' box will not be uploaded. Cool!
7/23/08 Update:
Here is the string I'm using currently to filter out unwanted files:
bin obj *.user Debug Release *.aps *.eto [Bb]in [Dd]ebug [Rr]elease _ReSharper.* *.cache CommonAssemblyInfo.cs *.suo *.user *.resharper
1 comments:
I've been looking all over for this!
Thanks.
Post a Comment