.gitignore for Umbraco
15 ignore rules for Umbraco, ready to copy into your repository.
.NET content management system
The complete .gitignore for Umbraco
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:32:20 UTC
# Technologies: Umbraco
### Umbraco ###
**/App_Data/Logs/
**/App_Data/[Pp]review/
**/App_Data/TEMP/
**/App_Data/NuGetBackup/
**/App_Data/umbraco.config
!**/App_Data/[Pp]ackages/*
!**/[Uu]mbraco/[Dd]eveloper/[Pp]ackages/*
!**/[Uu]mbraco/[Vv]iews/[Pp]ackages/*
**/App_Data/cache/
**/ood.flag
**/wwwroot/umbraco/
*.sqlite.db*
**/umbraco/*
!**/umbraco/models
!**/umbraco/Data/packages
What these Umbraco rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Ignore unimportant folders generated by Umbraco
| Pattern | What it ignores |
|---|---|
**/App_Data/Logs/ |
Ignore unimportant folders generated by Umbraco |
**/App_Data/[Pp]review/ |
Ignore unimportant folders generated by Umbraco |
**/App_Data/TEMP/ |
Ignore unimportant folders generated by Umbraco |
**/App_Data/NuGetBackup/ |
Ignore unimportant folders generated by Umbraco |
Ignore Umbraco content cache file
| Pattern | What it ignores |
|---|---|
**/App_Data/umbraco.config |
Ignore Umbraco content cache file |
Make sure to include details from VisualStudio.gitignore BEFORE this
| Pattern | What it ignores |
|---|---|
!**/App_Data/[Pp]ackages/* |
Make sure to include details from VisualStudio.gitignore BEFORE this |
!**/[Uu]mbraco/[Dd]eveloper/[Pp]ackages/* |
Make sure to include details from VisualStudio.gitignore BEFORE this |
!**/[Uu]mbraco/[Vv]iews/[Pp]ackages/* |
Make sure to include details from VisualStudio.gitignore BEFORE this |
ImageProcessor DiskCache
| Pattern | What it ignores |
|---|---|
**/App_Data/cache/ |
ImageProcessor DiskCache |
Ignore the Models Builder models out of date flag
| Pattern | What it ignores |
|---|---|
**/ood.flag |
Ignore the Models Builder models out of date flag |
**/wwwroot/umbraco/ |
NEW for version 9 .Net 5 (Core) ignore umbraco backoffice assest from wwwroot |
SQLite files
| Pattern | What it ignores |
|---|---|
*.sqlite.db* |
SQLite files |
**/umbraco/* |
ignore umbraco data/views/settings |
!**/umbraco/models |
include default location for modelsbuilder output |
!**/umbraco/Data/packages |
include default location for packages |
How to use this .gitignore for Umbraco
- Copy the Umbraco rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.