A `.gitignore` file in [[Git]] directory that: [^1] > Specifies **intentionally untracked** files to ignore by [[Git]] ## Usage ### File Untrack file just writing its name: ``` .env .DS_Store ``` ### Folder Untrack everything in folder like: ``` Attachments/ node_modules/ ``` ### Folder with exceptions Untrack everything in folder, but not a folder itself like `.<folder>/*`, and the files: ``` .obsidian/* !.obsidian/app.json !.obsidian/appearance.json ``` [^1]: https://git-scm.com/docs/gitignore