Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[add] empty gitignore #3391

Open
wants to merge 1 commit into
base: master
from
Open

[add] empty gitignore #3391

wants to merge 1 commit into from

Conversation

@s1mpleTEK
Copy link

@s1mpleTEK s1mpleTEK commented Apr 30, 2020

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).

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.
@drothmaler
Copy link
Contributor

@drothmaler drothmaler commented Apr 30, 2020

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 .gitignore to my repo? It just creates a useless commit... So it looks like YAGNI to me... But maybe I‘m missing a point. Could you please further explain, why you‘d want to do that?

@s1mpleTEK
Copy link
Author

@s1mpleTEK s1mpleTEK commented Apr 30, 2020

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 .gitignore that is why I make this request, to have an empty .gitignore that I can implement directly with the creation of the repository, without it having to do it.

That's why I make this request near this repository that manages all the database of the "gitignore_template" feature available with the GitHub api.

@shiftkey
Copy link
Member

@shiftkey shiftkey commented May 1, 2020

I create the GitHub repositories from an unix shell script thanks to the GitHub api

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.

@s1mpleTEK
Copy link
Author

@s1mpleTEK s1mpleTEK commented May 6, 2020

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.
Sorry for the late reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants