# .gitignore changes in Discourse core

**URL:** <https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916>\
**Category:** Development\
**Tags:** dev-news\
**Created:** [May 10, 2021, 11:42am UTC](https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916 "2021-05-10T11:42:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)\
**Post date:** [May 10, 2021, 11:42am UTC](https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916/1 "2021-05-10T11:42:37Z")

</div>

Heads up for all Discourse devs out there – **[`.gitignore`](https://github.com/discourse/discourse/blob/master/.gitignore) file in the discourse repository went on [a diet](https://github.com/discourse/discourse/pull/12981)**. 🍏

If you find that some untracked files that were ignored before don’t be alarmed! There are two possibilities:

1. **Maybe those files are specific to your dev environment?** Your vim `.swp` files, VSCode workspace, macOS `.DS_Store` files, etc.  
In that case, you should ignore them globally, so they’re no longer a problem in any repo! To enable global gitignore (`~/.gitignore`) run:

```bash
git config --global core.excludesFile '~/.gitignore'

```

Then create that file and add your VIM/VSCode/Sublime/Emacs/Eclipse/RubyMine/JetBrains/macOS/Arch/Windows 95-specific stuff. 😃
2. Or, maybe it was discourse-specific file that we should keep in .gitignore? If so, let me know in this topic. 🙂

🥂

---

_[View the full topic](https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916)._
