Add files to global gitignore
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.
Comments: 3
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
23 May, '22
Stuart NightingaleHighlighted comment
I would absolutely love for the gloabl .gitignore to count within Gitkraken. There's sometimes files that don't need committing (say a config JUST for your local) but doesn't always need to be part of each project .gitignore too. SO having the gloabl igno0re working would be amazing! -
10 May, '23
Marc Manteibump.
i am working with a windows dev team, all repo's have a .gitignore.
I don't want to go over every repo adding ".DS_Store" to the .gitignore because i am working on a unix system.
Instead i prefer having my personal 'global' .ignore to deal with, leaving the repo's gitignore as they are. -
11 Aug, '23
Joey Kelroy Admin"Add a menu option to view/edit the global .gitignore" (suggested by Henry Padilla on 2023-08-09), including upvotes (1) and comments (0), was merged into this suggestion.