Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Folders to ignore on subversion commit

Which folders may I not commit to subversion server?

I'm talking about an standard asp.net web application in Visual Studio 2.008. I think the bin folder because it's files are regenerated, is there any other?

like image 383
eKek0 Avatar asked Mar 09 '09 14:03

eKek0


People also ask

How do I ignore bin and obj folder in svn?

If you right click on a single unversioned file, and select the command TortoiseSVN → Add to Ignore List from the context menu, a submenu appears allowing you to select just that file, or all files with the same extension.

How do I ignore target folder in svn?

To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target . svn propedit svn:ignore .

How do I ignore files in svn?

The svn:ignore property One of these properties is svn:ignore . How this works is that you use the command svn propset to set the property svn:ignore on a particular directory. You give svn:ignore a value, which is a file name pattern. Then, svn will ignore all items in this directory whose name matches the pattern.


2 Answers

We put this string as the svn:ignore property on all our projects:

*.pdb  
*.exe  
*.dll  
debug/*  
release/*  
*.user  
*.suo  
obj/*  
bin/*  
obj  
bin  
VSMacros80  
like image 146
MartinHN Avatar answered Nov 03 '22 00:11

MartinHN


For any C# project I would recommend to ignore the following files/directories:

Visual Studio files to ignore

  • *.pdb — Files that hold states information when debugging.
  • *.exe — Executable binaries.
  • *.dll — Library binaries.
  • debug/* — Folder used by Visual Studio to store a lot of debugging information
  • release/* — Folder used by Visual Studio to store binary releases.
  • *.user — Configuration per user.
  • *.suo — Options settings per user stored in binary format.
  • obj — Folder used by Visual Studio to store binary objects used while debugging.
  • bin — Folder used by Visual Studio to store compiled objects.
  • VSMacros80 — Folder used by Visual Studio to store macros.

Other files to ignore

  • packages — Folder used for NuGet references.
  • *.log — In case of having logs written in the source folder (this should not happen).

Note: Remember to add these pattern to be ignored recursively.


Extra (copy-n-paste)

*.pdb  
*.exe  
*.dll  
debug/*  
release/*  
*.user  
*.suo
obj  
bin  
VSMacros80
packages
*.log
like image 34
Rubens Mariuzzo Avatar answered Nov 03 '22 00:11

Rubens Mariuzzo