I suggest you ...

Add repository templates to gitlab

The ability for the admin to create a number of named git repository templates would be very nice.
It should be possible to add files to the template so any repo made from a template gets a copy of the template files.
When you want to make a new project in gitlab there should be a pulldown menu where you could choose a template created inhouse.

Many uses gitlab as an internal company git server, thus often specific setups are required for repositories.
Templates would simplify this by ensuring the default files are present at clone.
Maintenance of said files is easy since it should only be done in gitlab.

example files.
.ignore
.attributes
buildserver property files
and so much more.

175 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    ThomasThomas shared this idea  ·   ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Daniel PizettaDaniel Pizetta commented  · 

        This is kind of an amazing stuff that exists in GitHub, and helps a lot. May GitLab could link to this rep here: https://github.com/github/gitignore.. Until then, we copy the files needed from there :) GitHut has a setup that helps you to select the correct .gitignore file, bacause it is so sad to build one.

      • Anonymous commented  · 

        We are using a GitLab server inside our lab to teach students and default files in repositories (Like a well-formatted readme) would help tremendously.

        @Andre Geef: That sounds sweet, can you make it work for everyone and integrate it into GitLab? Thanks.

      • Andre GreeffAndre Greeff commented  · 

        Hope you don't take this the wrong way, but in my mind, the functionality you're asking for doesn't sound like something a code hosting service *should* provide.. Would it not be better to have a script tailored for your specific dev environment that creates repositories that you could push to your GitLab server?

        I would suggest you look into setting up a Yeoman generator for creating the required directories and files. Beyond your listed example files, you could use the generator to create a script file (bash, batch, VBS, etc..) containing specific commands (like `git init`, `git add README.md`, etc..), then all you need is to call a single script file after generation that would do all this for you.

      Feedback and Knowledge Base