2 ms·
Global gitignore should in general only be used for things that's "unique" in your local environment, like: * IDE/Editor (for example, add `.vscode` to your gl
by fishywang 4y ago
Global gitignore should in general only be used for things that's "unique" in your local environment, like:
* IDE/Editor (for example, add `.vscode` to your global gitignore if you use VSCode, add `.idea` if you use IntelliJ family, NOT add `.editorconfig` because that's intended to be cross environment)
* OS level spam (`.DS_Store`, etc.)
* Any file generated by a tool you use locally
Also a pro tip, I have this alias in my global git config:
why-ignore = check-ignore -v --no-index
So I can use `git why-ignore path/to/file` to show why a file is ignored (e.g. it shows which line in which gitignore file excluded it).
- fomine3 4y agoThanks for pro tip, git clean -ndx is my friend.