Version Control – Should Log Files Be Stored?

version control

The log files in question are metrics log files. One of them is a project file produced by SourceMonitor, to which I regularly add checkpoints to chart the progress of projects.

Best Answer

Nowadays storage is cheap. If these are metrics that you can use to show performance increases that coincide with versions, then I'd say keeping them in source control is just fine. Just make sure that you're storing them for a reason. If you can regenerate these logs/performance files from the source (meaning I can check out the code, run it, and produce the exact file you're about to store), then you probably don't need to.

Lots of things are stored in version control these days, including any and all documentation and other files that change along with the version of the project/code.

Note: You would store these in a branch outside your code branch. Like Thomas' answer states, the source code branch that is used to build/deploy the app should be be separate so that your build server (or you, if you don't have time/space) can download/checkout the code independently of the documentation.

Related Topic