SVN ignore pattern

by Jon Davis 11. November 2008 13:38

This isn't news, I'm posting for my own reference as I move from computer to computer frequently as the months go by.

Here's how I set up my projects to not auto-include local or junk files when adding to SVN.

With TortoiseSVN installed, in Windows Explorer (not Internet Explorer) right-click on any directory and choose TortoiseSVN -> Settings. Then under General -> Global ignore pattern, add:

thumbs.db *.user *.suo RECYCLER bin obj *.dll *.bak *.log *.~?? *.exe *.tmp *.pdb  _[Rr]e[Ss]harper* 

EDIT 5/10/2011
Here is an update for the settings including the default setting:
*.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store thumbs.db *.user *.suo RECYCLER bin obj *.dll *.bak *.log *.~?? *.exe *.tmp *.pdb  _[Rr]e[Ss]harper* *.vs10x *.dbmdl

The equivalent setting in SVN is svn:ignore. 

Surprisingly, a lot of people forget thumbs.db, which is the Windows Explorer thumbnail metadata file that's hidden by default. It's amazing how annoying that beast is in a shared SVN repository.

Anybody else have other filters that should be added? 

Tags: ,

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading




 

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

Jon Davis (aka "stimpy77") has been a programmer, developer, and consultant for web and Windows software solutions professionally since 1997, with experience ranging from OS and hardware support to DHTML programming to IIS/ASP web apps to Java network programming to Visual Basic applications to C# desktop apps.
 
Software in all forms is also his sole hobby, whether playing PC games or tinkering with programming them. "I was playing Defender on the Commodore 64," he reminisces, "when I decided at the age of 12 or so that I want to be a computer programmer when I grow up."

Jon was previously employed as a senior .NET developer at a very well-known Internet services company whom you're more likely than not to have directly done business with. However, this blog and all of jondavis.net have no affiliation with, and are not representative of, his former employer in any way.

Contact Me 


Tag cloud

Calendar

<<  August 2020  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

View posts in large calendar

RecentPosts