Add files to global gitignore

66 votes

When right-clicking on a file, we have some options to add a file to the .gitignore file.

However, it would be good to add some files to the global .gitignore and not to the .gitignore on the project. An example of this is config files that you need for testing, but you don't want to commit those, and adding those to the project's .gitignore is also not ideal as some project maintainers may object to adding that kind of personal but project-related files to the .gitignore. Having those files to the global .gitignore cleans the project repository, as you won't accidentally commit the project's .gitignore with your changes but won't also accidentally commit the files.

Under consideration Suggested by: André Santos Upvoted: 22 Jun Comments: 3

Comments: 3
OldestNewestMost likesFewest likes