Nuxt/docs/2.guide/2.directory-structure/2.gitignore.md

38 lines
700 B
Markdown
Raw Permalink Normal View History

---
title: ".gitignore"
description: "A .gitignore file specifies intentionally untracked files that git should ignore."
head.title: ".gitignore"
navigation.icon: i-ph-file
---
A `.gitignore` file specifies intentionally untracked files that git should ignore.
:read-more{icon="i-simple-icons-git" color="gray" title="the git documentation" to="https://git-scm.com/docs/gitignore" target="_blank"}
2021-11-21 12:31:44 +00:00
We recommend having a `.gitignore` file that has **at least** the following entries present:
```bash [.gitignore]
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist
# Node dependencies
node_modules
# Logs
logs
*.log
# Misc
.DS_Store
# Local env files
.env
.env.*
!.env.example
```