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
1834
votes
11 answers

How to find a deleted file in the project commit history?

Once upon a time, there was a file in my project that I would now like to be able to get. The problem is: I have no idea of when have I deleted it and on which path it was. How can I locate the commits of this file when it existed?
Pedro Rolo
  • 28,273
  • 12
  • 60
  • 94
801
votes
6 answers

Pull request vs Merge request

What is the difference between a Pull request and a Merge request? In GitHub, it's a Pull Request while in GitLab, for example, it's a Merge Request. So, is there a difference between both of these?
Pacane
  • 20,273
  • 18
  • 60
  • 97
576
votes
16 answers

Fix GitLab error: "you are not allowed to push code to protected branches on this project"?

I have a problem when I push my code to git while I have developer access in my project, but everything is okay when I have master access. Where is the problem come from? And how to fix it? Error message: error: You are not allowed to push code to…
562
votes
51 answers

GitLab remote: HTTP Basic: Access denied and fatal Authentication

Unlike this post, I am on macOS. I have the password configured in GitLab. I also have an SSL key created after the project was made on GitLab. When I use an existing folder for a new project and follow the steps below, I am prompted to enter my…
jeancode
  • 5,856
  • 5
  • 12
  • 20
561
votes
35 answers

Server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I can push by clone project using ssh, but it doesn't work when I clone project with https. The error message that it shows me is: server certificate verification failed. CAfile: /etc/ssl/certs/cacertificates.crt CRLfile: none
Sokhom Ratanak
  • 5,836
  • 4
  • 14
  • 11
392
votes
19 answers

How to check the version of GitLab?

How to check which version of GitLab is installed on the server? I am about version specified in GitLab changelog: https://gitlab.com/gitlab-org/gitlab-foss/blob/master/CHANGELOG.md For example: "6.5.0", "6.4.3", etc. Сan this be done only…
Maxim
  • 13,029
  • 6
  • 30
  • 45
372
votes
19 answers

How to remove a Gitlab project?

I have created several repositories in GitLab. One of those was for testing purposes and has some commits and branches. I want to delete or remove this repository. How can I do this?
Liutas
  • 5,547
  • 4
  • 23
  • 22
331
votes
11 answers

Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)?

Can one transfer repositories from GitLab to GitHub if the need be. If so, how exactly can I go about doing the same? Also, are there any pitfalls in doing so or precautionary measures that I need to keep in mind before doing so given that I may…
boddhisattva
  • 6,908
  • 11
  • 48
  • 72
322
votes
28 answers

Git push error pre-receive hook declined

I have run gitlabhq rails server on virtual machine, following 1-6 steps from this tutorial https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md and starts rails server executing command sudo -u git -H bundle exec rails s…
Hroft
  • 3,887
  • 4
  • 19
  • 24
300
votes
18 answers

Using GitLab token to clone without authentication

I want to clone GitLab repository without prompt for my automation script, by using my private token from my GitLab account. Can someone provide me a sample? I know I can do so with user and password: git clone https://" + user + ":" + password +…
Muky
  • 3,584
  • 3
  • 19
  • 20
282
votes
14 answers

Change Default branch in gitlab

I accidentally pushed my local master to a branch called origin on gitlab and now it is the default. Is there a way to rename this branch or set a new master branch to master?
Jeff
  • 4,622
  • 2
  • 27
  • 40
278
votes
5 answers

How can I pass GitLab artifacts to another stage?

I'd like to use GitLab CI with the .gitlab-ci.yml file to run different stages with separate scripts. The first stage produces a tool that must be used in a later stage to perform tests. I've declared the generated tool as an artifact. Now how can I…
ygoe
  • 18,655
  • 23
  • 113
  • 210
274
votes
44 answers

Getting permission denied (public key) on gitlab

My problem is that I can't push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push : Permission denied (publickey) fatal : Could not read from remote repository From all the threads I've looked,…
220
votes
27 answers

error: RPC failed; curl transfer closed with outstanding read data remaining

I'm facing this error when I try to clone a repository from GitLab (GitLab 6.6.2 4ef8369): remote: Counting objects: 66352, done. remote: Compressing objects: 100% (10417/10417), done. error: RPC failed; curl 18 transfer closed with outstanding read…
Vy Do
  • 46,709
  • 59
  • 215
  • 313
215
votes
8 answers

git ignore .env files not working

I have a laravel project. In the root directory are these 4 files: .env .env.example .env.local .env.staging I have a .gitignore file, and I'm listing these 4 files in the .gitignore, one after another, like…
Matt
  • 3,206
  • 4
  • 24
  • 26
1
2 3
99 100