2021-10-11 12:57:54 +00:00
|
|
|
---
|
2022-10-06 09:15:30 +00:00
|
|
|
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"
|
2023-10-18 10:59:43 +00:00
|
|
|
navigation.icon: i-ph-file-duotone
|
2021-10-11 12:57:54 +00:00
|
|
|
---
|
|
|
|
|
2023-10-18 10:59:43 +00:00
|
|
|
A `.gitignore` file specifies intentionally untracked files that git should ignore.
|
2021-10-11 12:57:54 +00:00
|
|
|
|
2023-10-18 10:59:43 +00:00
|
|
|
:read-more{icon="i-simple-icons-git" color="gray" title="the git documentation" to="https://git-scm.com/docs/gitignore" target="_blank"}
|
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
|
2023-11-16 14:06:30 +00:00
|
|
|
.data
|
2021-10-11 12:57:54 +00:00
|
|
|
.nuxt
|
2023-11-16 14:06:30 +00:00
|
|
|
.nitro
|
|
|
|
.cache
|
|
|
|
dist
|
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
|
2023-11-16 14:06:30 +00:00
|
|
|
.env
|
2023-06-08 05:59:48 +00:00
|
|
|
.env.*
|
|
|
|
!.env.example
|
2021-10-11 12:57:54 +00:00
|
|
|
```
|