[add] empty gitignore #3391
[add] empty gitignore #3391
Conversation
I think that will be good to make a empty gitignore for people who use Github's api for create us own Github repository without any template.
|
When you create a new Git repo in GitHub, there is a „None“ option for „Add .gitignore:“ (actually the default). So if I create a repo I can either select one of the templates as a starting point, or just add no gitignore at all - and maybe add one later, if I need it. But why would I ever want to add an empty |
|
Why do I want to do this ? I'm in college, and my college has set up a new collection system for our projects on github. So I decided to create a unix shell script, to facilitate the creation of our repositories on github as well as on the old version of the collections that are still effective. I create the GitHub repositories from an unix shell script thanks to the GitHub api and I would like to make it as usable as possible for my comrades since it is not used case to be used for college but also for personal projects. Since I do not know what language my comrades are going to work with, so I can not define the appropriate That's why I make this request near this repository that manages all the database of the |
I'm still thinking about this PR, but if you're looking for reuse with scripting there is the ability to create repository templates that represents all files a new repository should contain. This can then be used to create a repository based on a template through the GitHub API. It's not clear to me whether your script is making a commit with additional files, but if you are then maybe the repository template is a more elegant solution to this problem. |
|
Is it possible to make changes with a template ? Because I plan to add the possibility to choose the license that we want which I do not know in advance, and I'm afraid that to do with a template this blocks me later. Because, to put a license or a .gitignore on a repository using GitHub APIs it is necessary to do the creation of the repository otherwise we will not be able to add it later. |
It is a new template:
I think that will be good to make a empty gitignore for people who use Github's api for create us own Github repository without any "template" (empty gitignore).