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
120
votes
5 answers

How to create releases in GitLab?

I had created a private repository which I then changed to public repository. However, I could not find any way to release. Is it possible to create releases in GitLab? If so, how are they done?
Tom Kurushingal
  • 6,086
  • 20
  • 54
  • 86
118
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,833
  • 3
  • 14
  • 11
117
votes
24 answers

How to fix 'The project you were looking for could not be found' when using git clone

I am trying to clone a project from gitlab to my local machine. I have been granted rights as a developer, and use the command 'git clone None of the protocols work (ssh and https neither work) The error message I am getting: remote: The project…
tijnster
  • 1,387
  • 3
  • 8
  • 12
116
votes
6 answers

How to use git commands after enable gitlab's second-factor authentication

Today I've enabled Gitlab's 2nd-factor authentication. After that, since I logged in the Gitlab website, I need to use my cell phone to pass a 6-digits plus my password, that's good, it makes me feel safe. However, when I use the general operations,…
an offer can't refuse
  • 4,245
  • 5
  • 30
  • 50
114
votes
8 answers

On GitLab, how to compare a file of two different commits

On GitLab, how to compare a file of two different commits? I know that that on command line git, the command is: git diff commit1 commit12 -- file_name What is the link format to do this on GitLab? See my related question
yigal
  • 3,923
  • 8
  • 37
  • 59
112
votes
4 answers

How can I reference an image in GitLab markdown in the current directory with the path starting with ./ dot slash?

I have stored a Markdown file and an image file in a Git repo as follows: readme.markdown images/ image.png I reference the image from readme.markdown like this: ![](./images/image.png) This renders as expected in ReText, but does not render…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
109
votes
11 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
  • 4,183
  • 6
  • 25
  • 35
109
votes
10 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,416
  • 2
  • 10
  • 12
102
votes
4 answers

How to access multiple repositories in CI build?

We have a project that is composed of multiple (non-public) repositories. To build the whole project, the build system needs to have the files of all repositories (master branches). Is there a way I can configure GitLab CI to provide the…
Udo G
  • 12,572
  • 13
  • 56
  • 89
101
votes
15 answers

Fingerprint has already been taken gitlab

I formatted my Windows 7 laptop and in an attempt to have git setup working again, I installed git and source tree application. I deleted the SSH Key from gitlab and regenerated the key using ssh-keygen. But when I try to add the SSH Key at gitlab,…
learn_develop
  • 1,735
  • 4
  • 15
  • 33
101
votes
5 answers

How do we change the URL of a working GitLab install?

I have set up and we are running a default install of GitLab v6.0.1 (we're about to upgrade as well). It was a "Production" setup, following this guide precisely to the…
eduncan911
  • 17,165
  • 13
  • 68
  • 104
100
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
  • 16,451
  • 43
  • 149
  • 324
94
votes
5 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
  • 148,487
  • 229
  • 573
  • 852
93
votes
33 answers

ssh : Permission denied (publickey,gssapi-with-mic)

i'm use centos 5.9. after installing gitlab by this link ssh not working. before install gitlab ssh correctly working. i'm using this server localy and other services such as elastix and apache,mysql installed on server. appeare this error…
ali moradi
  • 1,103
  • 1
  • 8
  • 9
92
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