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
587
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
  • 16,528
  • 15
  • 52
  • 88
413
votes
10 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 codes 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…
387
votes
20 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 shows me is: server certificate verification failed. CAfile: /etc/ssl/certs/cacertificates.crt CRLfile: none
Sokhom Ratanak
  • 4,057
  • 4
  • 12
  • 8
380
votes
41 answers

GitLab remote: HTTP Basic: Access denied and fatal Authentication

I am on mac OS unlike this post: 'git push origin MyBranchName' throws error "HTTP Basic: Access denied" I have password configured in GitLab. I have SSL key created AFTER the project was made on GitLab. When I use an existing folder for a new…
jeancode
  • 3,996
  • 3
  • 10
  • 19
309
votes
15 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
  • 4,743
  • 4
  • 19
  • 22
292
votes
11 answers

How can I switch to another branch in git?

Which one of these lines is correct? git checkout 'another_branch' Or git checkout origin 'another_branch' Or git checkout origin/'another_branch' And what is the difference between them?
Benyamin Jafari
  • 15,536
  • 14
  • 81
  • 116
281
votes
16 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
  • 10,077
  • 5
  • 26
  • 43
240
votes
8 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
  • 5,836
  • 9
  • 44
  • 71
223
votes
16 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
  • 2,827
  • 2
  • 16
  • 24
217
votes
13 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
  • 3,841
  • 2
  • 24
  • 36
175
votes
14 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
  • 2,334
  • 3
  • 16
  • 20
165
votes
37 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,…
164
votes
21 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…
Do Nhu Vy
  • 33,131
  • 37
  • 143
  • 202
158
votes
3 answers

How can I pass 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 artifact. Now how can I…
ygoe
  • 14,805
  • 19
  • 92
  • 173
152
votes
10 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
  • 15,234
  • 23
  • 111
  • 195
1
2 3
99 100