# .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:** 3
**Page:** 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. 🙂

🥂

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [May 10, 2021, 3:27pm UTC](https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916/2 "2021-05-10T15:27:22Z")

</div>



---

<div class="post-metadata">

### Author: ![qaisjp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qaisjp/32/192082_2.png) [@qaisjp](https://meta.discourse.org/u/qaisjp)
#### Post date: [May 15, 2021, 11:57pm UTC](https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916/4 "2021-05-15T23:57:58Z")

</div>

I’m curious to see if any contributors who are new to Git in general will accidentally commit `.DS_Store` or other “helpful” files. (It’s easy enough to say “this should go in your settings”, but new people won’t know to set that up.)
