isaacs / github

Just a place to track issues and feature requests that I have for github
2.21k stars 129 forks source link

Allow users to add multiple custom templates for gitignore visible at repository initialization #710

Open HeinPauwelyn opened 8 years ago

HeinPauwelyn commented 8 years ago

GitHub has made tempates for the .gitignore files by creating a new repository. I like that but I can't add a template for example unity3D and Visual Studio at once. Comes there an update where you could that?

TPS commented 8 years ago

@HeinPauwelyn Did https://github.com/blog/2232-github-extension-for-visual-studio-2-0-is-now-available include a solution to the issue for you?

HeinPauwelyn commented 8 years ago

No What I mean is over here on the site:

image

And here in the GitHub client:

image

In that drop down must be valid to select more that one template so I could select (for example) Unity and Visual Studio.

P.S.: sorry for my late response

NobbZ commented 8 years ago

Ignoring IDE or Operating System specifics should be done in a per user global gitignore, this keeps the projects gitignore clean.

If you want to have every possible combination of editors, IDEs and Operating Systems in your gitignore, you will end up with a gitignore with is bigger in size than the remainder of the repo. I like the template to force you to stay focused. I'd go even a step further and ask github for removing editors, operating systems and other tools from that list.

TPS commented 7 years ago

@HeinPauwelyn Closed because this is solved for you now? Or…?

HeinPauwelyn commented 7 years ago

Bad idee. @NobbZ has right use one IDE and has a small gitignore file.

NobbZ commented 7 years ago

@HeinPauwelyn this issue has in fact a right to be kept open!

Even if I consider IDE and OS specifics to not belong into the repository, there are still valid use cases for this proposal.

Just consider a typical web-app, which does sometimes involve multiple different buildchains which might produce a wide spread of different artifacts which one might need to have a wide spread of gitignore files.