Heads up for all Discourse devs out there – .gitignore
file in the discourse repository went on a diet.
If you find that some untracked files that were ignored before don’t be alarmed! There are two possibilities:
-
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:
Then create that file and add your VIM/VSCode/Sublime/Emacs/Eclipse/RubyMine/JetBrains/macOS/Arch/Windows 95-specific stuff.git config --global core.excludesFile '~/.gitignore'
- Or, maybe it was discourse-specific file that we should keep in .gitignore? If so, let me know in this topic.