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 GitHub, 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:

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
17630 questions
213
votes
8 answers

This job is stuck, because the project doesn't have any runners online assigned to it. Go to Runners page

I am learning GitLab CI/CD. I installed GitLab and GitLab Runner from Officials. Whenever I run the pipeline during Maven build, the job gets stuck. I have a registered runner and it is available to my project, but jobs get…
Navigator
  • 2,871
  • 4
  • 17
  • 27
185
votes
4 answers

Forking Git repository from GitHub to GitLab

Suppose that I would like to implement a fix to a project of someone else. That project resides on GitHub. I could create a fork on GitHub and implement the fix. However, I would like to create my fork on GitLab rather than on GitHub. Is that…
Cimlman
  • 3,404
  • 5
  • 25
  • 35
185
votes
11 answers

Import an existing git project into GitLab?

I have an account of a Gitlab installation where I created the repository "ffki-startseite" Now I want to clone the repository git://freifunk.in-kiel.de/ffki-startseite.git into that repository with all commits and branches, so I can start working…
rubo77
  • 19,527
  • 31
  • 134
  • 226
183
votes
30 answers

How to clone all projects of a group at once in GitLab?

In my GitLab repository, I have a group with 20 projects. I want to clone all projects at once. Is that possible?
Doon
  • 3,339
  • 5
  • 25
  • 31
164
votes
3 answers

Changing image size in Markdown on Gitlab

I'm trying to post a picture to a file on my Gitlab using markdown ![](test/media/screenshot.png) seems to work but is far too large. Other solutions I've tried and don't seem to work are as follows:
Ben Kelly
  • 1,641
  • 2
  • 7
  • 4
155
votes
11 answers

Install npm module from gitlab private repository

We are using GitLab for our private project. There are some forked libraries from github, that we want to install as npm module. Installing that module directly from npm is ok and for example this: npm install…
FredyC
  • 3,999
  • 4
  • 30
  • 38
149
votes
3 answers

What are the pros and cons of git-flow vs github-flow?

We have recently started to use GitLab. Currently using a "centralized" workflow. We are considering moving to the github-flow but I want to make sure. What are the pros and cons of git-flow vs github-flow?
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120
146
votes
8 answers

How to wrap long lines inside of markdown ``` code ``` in Github and 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
  • 3,104
  • 3
  • 26
  • 29
140
votes
5 answers

GitLab CI vs. Jenkins

What is the difference between Jenkins and other CI like GitLab CI, drone.io coming with the Git distribution. On some research I could only come up that GitLab community edition doesn't allow Jenkins to be added, but GitLab enterprise edition does.…
Ravikiran butti
  • 1,668
  • 2
  • 11
  • 18
133
votes
18 answers

How to fix: error: '' does not have a commit checked out fatal: adding files failed when inputting "git add ." in command prompt

I'm trying to add a ruby rails file to my repository in gitlab but it somehow wouldn't allow me to add the file saying that my file does not have commit checked out. I've tried git pull, making the the file again and git adding but still wont…
mark29230
  • 1,333
  • 2
  • 6
  • 6
133
votes
3 answers

markdown link to header

I'm using GitLab to write a read.me file. I tried to create a link to a header. According to the wiki an id should be automatically created: see here I created a header using: ### 1. This is my Header and tried to create a link to…
user7431005
  • 3,899
  • 4
  • 22
  • 49
132
votes
21 answers

How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio

I have one project on Gitlab and I worked with it for the last few days! Now i want pull project on my home PC but show me below error : Invocation failed Unexpected Response from Server: Unauthorized java.lang.RuntimeException: Invocation…
Jake warton
  • 2,163
  • 4
  • 11
  • 20
126
votes
2 answers

Automatically access git submodules via ssh or https

Question: Is there a way to automatically checkout git submodules via the same method (ssh or https) as the main repository? Background: We have a non-public gitlab repository (main) that has a submodule (utils) which is also hosted as a non-public…
MikeMB
  • 20,029
  • 9
  • 57
  • 102
123
votes
19 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,745
  • 2
  • 15
  • 19
122
votes
6 answers

How to restrict access to the master branch in Git

I have a single repository in which I have two user groups: Administrators HTML/UI Developers I do not wish to give read/write access of my master branch to my HTML developers as they do not need to work on it and should not be misusing the core…
Harshit Agrawal
  • 1,415
  • 2
  • 10
  • 10