News for hackers. Stuff that matters.
Re:Git ignores .gitignore with .gitignore in .gitignore by bmitc on Wednesday May 18, 2022 @12:54PM (#31425000)
Telling developers to not use the global .gitignore seems to be the wrong response. For example, I use VS Code, its extensions, and various other development tools that create local files that should not be in repositories. Those files and directories do not belong in a repository's .gitignore file, unless it's a personal project. They most often belong in a global .gitignore unless a team uses a common set of tools. Having a single developer's custom tools be handled by a repository's .gitignore seems to be the wrong approach.
Re:Git ignores .gitignore with .gitignore in .gitignore by Fatnino on Wednesday May 18, 2022 @05:00PM (#31427592)
.git/info/exclude seems like the right place for this.
Re:Git ignores .gitignore with .gitignore in .gitignore by bmitc on Wednesday May 18, 2022 @05:08PM (#31427686)
That's only per repository, isn't it? It won't really be convenient when you're working across several repositories or languages.