2021-10-11 12:57:54 +00:00
---
2022-10-06 09:15:30 +00:00
navigation.icon: IconFile
title: ".gitignore"
description: "A .gitignore file specifies intentionally untracked files that git should ignore."
2022-11-21 15:51:39 +00:00
head.title: ".gitignore"
2021-10-11 12:57:54 +00:00
---
2022-08-13 07:27:04 +00:00
# Git Ignore File
2021-10-11 12:57:54 +00:00
2021-10-14 13:19:06 +00:00
A `.gitignore` file specifies intentionally untracked files that git should ignore. Learn more about it in [the git documentation ](https://git-scm.com/docs/gitignore ).
2021-10-11 12:57:54 +00:00
2021-11-21 12:31:44 +00:00
We recommend having a `.gitignore` file that has **at least** the following entries present:
2021-10-11 12:57:54 +00:00
```bash [.gitignore]
# Nuxt dev/build outputs
.output
.nuxt
2023-06-08 05:59:48 +00:00
2021-10-11 12:57:54 +00:00
# Node dependencies
node_modules
2023-06-08 05:59:48 +00:00
# Logs
logs
2021-10-11 12:57:54 +00:00
*.log
2023-06-08 05:59:48 +00:00
# Misc
.DS_Store
# Local env files
.env.*
!.env.example
2021-10-11 12:57:54 +00:00
```