Documentation Monster
DM gitignore rec
Gravatar is a globally recognized avatar based on your email address. DM gitignore rec
  Richard Kaye
  All
  Jan 13, 2026 @ 11:25am

Hi Rick,

Do you have any specific recommendations for a DM-oriented .gitignore file? I started out with this:

*.bak
*.*.bak
*.tmp
*.saved.md
~*.*
__*.*
wwwroot/
_docmonster*/**

But after I made some changes to my default topic layout page, I realized that excluding the project _docmonster folder means _layout.html doesn't get tracked. So before I go off too far in the wrong direction I figured I'd ask for some guidance.

TIA

Gravatar is a globally recognized avatar based on your email address. re: DM gitignore rec
  Rick Strahl
  Richard Kaye
  Jan 13, 2026 @ 01:01pm

You don't want to block the _docmonster folder - but you do want to block the any of the backup folders (_docmonster-XXX folders).

This is what the default .gitignore creates for a new project:

*.bak
*.*.bak
*.tmp
*.saved.md
~*.*
__*.*
wwwroot/
_docmonster-*/

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: DM gitignore rec
  Richard Kaye
  Rick Strahl
  Jan 14, 2026 @ 05:07am

Ah, of course. I just did another test migration of my main WWHB project so I can get my workflows right with git, and I must have removed the hyphen from that mask at some point.

Gravatar is a globally recognized avatar based on your email address. re: DM gitignore rec
  Rick Strahl
  Richard Kaye
  Jan 14, 2026 @ 10:07am

Since your original playing around a few things have changed. I started out with a _kavadocs folder from the original code name in the past and the .gitignore has been tweaked. It might have been a different setup with _kavadocs and you probably just changed the name to _docmonster.

IAC the default file should work for the default setup. You can add additional things there if you have special folders you use internally for keeping track of things that shouldn't check in. I have research or temp folders typically where I dump Markdown documents or LLM instruction files into for example and those are excluded as well.

+++ Rick ---

© 1996-2026