File, extensions and directories to ignore in version control
Posted by jpluimers on 2022/02/17
I will try to keep this table up-to-date.
Note that in some tooling, names are case sensitive.
Name Category Tool Comment Debug Directory lib Directory *.identcache Extension Delphi *.local Extension Delphi *bin Extension *obj Extension RECYCLER Directory Windows Bin Directory *.user Extension Visual Studio/Delphi *.suo Extension Visual Studio *.dcu Extension Delphi __history Directory Delphi ModelSupport_* File Delphi *.rsm Extension Delphi thumbs.db File Windows stored in each directory that contains thumbnails on Windows systems thumbcache_256.db File Windows stored in each directory that contains thumbnails on Windows systems *.bak Extension *.~* Extension pattern Delphi __recovery Directory Delphi *.tvsconfig Extension Delphi *.o Extension *.lo Extension *.la Extension *.al Extension .libs *.so Extension *.so.[0-9]* Extension pattern *.a Extension *.pyc Extension Python *.pyo Extension Python *.rej Extension Mercurial [WayBack] Rejected patches *~ #*# .#* Extension pattern .*.swp Extension .DS_Store File MacOS stores custom attributes of its containing folder desktop.ini File Windows determines how a directory is displayed by Windows, such as the icon used by that directory *.chw Extension HTML Help Compiled HTML Help general index
Based on at least these earlier blog posts, and a lot of fiddling around:
- Tortoise SVN Global Ignore Pattern for Delphi and Visual Studio « The Wiert Corner – irregular stream of stuff
- The Plastic equivalent of .gitignore is ignore.conf
Hopefully, some day, I will find time to compare these against gitignore templates, for instance via:
- Nice online tool to create .gitignore files for coders working with git: [WayBack] www.gitignore.io(via Nice online tool to create .gitignore files for coders working with git…, which is on G+, so now defunct, and [WayBack] This is why I code on Twitter: “Nice online tool to create .gitignore files for coders working with git”.)
- [WayBack] GitHub – github/gitignore: A collection of useful .gitignore templates
and against [WayBack] svn – How do I configure the TortoiseSVN ‘Global ignore pattern’ properly? – Stack Overflow.
–jeroen
Matthijs ter Woord said
For .NET based development: bin and obj folders, packages folder (where old-style nuget’s are stored), .vs folder. .suo and .user files.