Questions tagged [gitlab]

GitLab is an Open Source Git repository manager with issue tracking and wiki as well as continuous integration features. Use this tag for programming questions related to the GitLab API or similar; questions about general usage are considered off-topic.

GitLab is open source software to collaborate on code. It can be considered an open source self hosted , but GitLab.com also provides git hosting in the way GitHub does, and you can also have private repositories for free.

Features

GitLab has the following features:

  • Code management
  • Merge requests
  • Issue tracking
  • Wiki
  • Code review
  • Continuous Integration and Deployment
  • Fine grained access controls
  • Advanced LDAP synchronization
  • Email Alerting Service

Screens

Gitlab-demo

There are three versions available for GitLab:

  • Community Edition (CE)
  • Enterprise Edition Starter (EES)
  • Enterprise Edition Premium (EEP)

Resources

  1. Source Code (GitHub mirror)
  2. Documentation
  3. Community
  4. Mailing List
  5. Official Blog
  6. GitLab Continuous Integration
12070 questions
79
votes
2 answers

How to link folder from a git repo to another repo?

I want to create a public repo to put some sample files from my main repo (private). Is there any way to soft link few folders from a git repo to another git repo?
Manoj
  • 1,293
  • 2
  • 10
  • 11
76
votes
3 answers

How to integrate UML diagrams into GitLab or GitHub

I want to publish some programming documentation I have in a public available repository. This documentation has formatted text, some UML diagrams, and a lot of code examples. I think that GitHub or GitLab are good places to publish this. To publish…
joanq
  • 1,078
  • 1
  • 8
  • 11
71
votes
15 answers

Where do I find the project ID for the GitLab API?

I use GitLab on their servers. I would like to download my latest built artifacts (build via GitLab CI) via the API like this: curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.com/api/v3/projects/1/builds/8/artifacts" Where do I…
Hubert Ströbitzer
  • 1,185
  • 1
  • 10
  • 18
71
votes
4 answers

How to create a new gitlab repo from my existing local git repo, using CLI?

I have many local git repos on my OSX. Using the command line I want to make new gitlab repositories on https://gitlab.companyname.com from existing local repositories. Is it possible to do that?
Jitendra Vyas
  • 134,556
  • 218
  • 544
  • 822
70
votes
2 answers

Role of docker-in-docker (dind) service in gitlab ci

According to the official gitlab documentation, one way to enable docker build within ci pipelines, is to make use of the dind service (in terms of gitlab-ci services). However, as it is always the case with ci jobs running on docker executors, the…
pkaramol
  • 9,548
  • 14
  • 80
  • 167
70
votes
5 answers

How to store releases/binaries in GitLab?

I am building a workflow with Gitlab, Jenkins and - probably - Nexus (I need an artifact storage). I would like to have GitLab to store releases/binaries - is it possible in a convenient way? I would not like to have another service from which a…
Kasia Gauza
  • 1,170
  • 1
  • 9
  • 19
70
votes
9 answers

How to change the project owner in GitLab

How can I change the project owner in GitLab? There are options in project settings, but in the "transfer" field, it does not recognize any username or anything. Is it possible to change the owner-permissions and root-privileges?
Charma
  • 857
  • 1
  • 8
  • 10
68
votes
6 answers

How to run a gitlab-ci.yml job only on a tagged branch?

How do I run a .gitlab-ci.yml job only on a tagged Master branch? job: script: - echo "Do something" only: - master - tags The above code will run if either condition exists: a Master branch or a tagged commit. My goal is to have this…
Carson Cole
  • 3,534
  • 4
  • 21
  • 32
68
votes
7 answers

how to line wrap long lines inside markdown ``` code blocks ``` in github&gitlab issues?

eg: ``` some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; ``` will force user to scroll…
timotheecour
  • 1,808
  • 1
  • 14
  • 24
68
votes
3 answers

How to give user level access to private GitLab repository?

I have a private repository in GitLab. I have to give its access to members of my team. How can I do that using GitLab web-interface? I know, how to do this in GitHub, but in GitLab it's somehow different.
VeLKerr
  • 2,420
  • 2
  • 18
  • 41
65
votes
2 answers

Git - What is "Refspec"

I've been following this guide on configuring GitLab continuous integration with Jenkins. As part of the process, it is necessary to set the refspec as follows: +refs/heads/*:refs/remotes/origin/*…
user4832990
64
votes
6 answers

change the data directory gitlab to store repos elsewhere

my basic disk is full for my gitlab installation, is it possible to move the repositories and their data to some other folder and make sure that the upcoming push's data is sent to those directories? I tried stopping the gitlab and copying over the…
Brij Raj Singh - MSFT
  • 4,463
  • 6
  • 32
  • 54
63
votes
11 answers

Gitlab-runner local build - login from non TTY device

I'm trying to build my project locally using gitlab-runner on Linux. docker-build: stage: build image: docker:latest script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY # user "gitlab-ci-token" is automatically…
asdfgh
  • 1,879
  • 3
  • 15
  • 25
63
votes
6 answers

An error occurred while installing rugged

Following this tutorial [link] to install gitlab on a dedicated server. I need to : sudo -u git -H bundle install --deployment --without development test postgres aws But an error occurred while installing rugged…
plieb
  • 899
  • 1
  • 9
  • 23
62
votes
9 answers

Gitlab repository mirroring

Is it possible to have gitlab set up to automatically sync (mirror) a repository hosted at another location? At the moment, the easiest way I know of doing this involves manually pushing to the two (gitlab and the other) repository, but this is time…
loopbackbee
  • 18,788
  • 8
  • 53
  • 85