GitLab: Unterschied zwischen den Versionen
Rkr (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung |
Rkr (Diskussion | Beiträge) |
||
Zeile 21: | Zeile 21: | ||
*New files can be created and in the GUI. | *New files can be created and in the GUI. | ||
*Files can be edited in the GUI. | *Files can be edited in the GUI. | ||
*A wiki per project (in separate Git repo). | |||
*Notifications. | *Notifications. | ||
*Visualization of commits, branches, etc. | *Visualization of commits, branches, etc. |
Version vom 27. Mai 2014, 08:56 Uhr
This page describes GitLab, which is a software for Git repository management and software development that can run on your own server.
Overview
GitLab is Open Source and offers Git repository management, code reviews, issue tracking, activity feeds and wikis.
Features
Major GitLab features are depicted in this article on techdo.me.
Some highlights:
- User management.
- SSH key management for accessing a repo via SSH and mapping to GUI user.
- Repository/project permissions (private, protected or public). Users and groups.
- View commits.
- Comments.
- Issue tracking.
- Markdown support.
- Branches and tags can be created in GUI.
- Merge requests. Code review.
- New files can be created and in the GUI.
- Files can be edited in the GUI.
- A wiki per project (in separate Git repo).
- Notifications.
- Visualization of commits, branches, etc.
Access to repositories
The GitLab GUI always shows the links you need to use for accessing (cloning) the Git repositories either via HTTP or SSH.
Example URLs for project/repository:
HTTP access:
http://gitlab.example.com/group1/project1.git
SSH access on port 22:
git@gitlab.example.com/group1/project1.git
- Note: The repo must be addressed with a absolute path (do not use ":" between hostname and pathname)
The corresponding clone commands are:
git clone http://gitlab.example.com/group1/project1.git git clone ssh://git@gitlab.example.com/group1/project1.git
Notes:
- For HTTP you need to authenticate with your GitLab user credentials, if it's not a public repo.
- It's recommended using SSH for accessing the repositories with a Git client.
- The SSH connect must go directly to the host GitLab has been installed on (no proxy in between).
- For SSH you need to always login as user git. The user mapping will be made via your SSH key(s).
- For SSH you need to authenticate with a SSH private key matching the public key you need to register in your GitLab user profile.
- The SSH keys must be unique. You can't add a public key to multiple user profiles. The keys are added to ~git/.ssh/authorized_keys.
- For SSH you need to take care using the correct SSH key, e.g. just add following to ~/.ssh/config:
Host gitlab.example.com IdentityFile ~/.ssh/id_rsa_emptypass StrictHostKeyChecking no UserKnownHostsFile /dev/null
- For SSH you can check the general SSH access and authentication by just connecting to the server with a native SSH client. In addition, your GitLab user mapping will be responded by the server as e.g. Welcome to GitLab, Peter Pan!. A successful connect (using SSH port forwarding) looks like:
> ssh git@gitlab.example.com
X11 forwarding request failed on channel 0
PTY allocation request failed on channel 0
Welcome to GitLab, Peter Pan!
Connection to gitlab.example.com closed.
Operations
See Operations for info about installing and maintaining GitLab.
Help
The GitLab GUI has an excellent online help available at
http://gitlab.example.com/help
Weblinks
GitLab official sites:
- GitLab Homepage
- GitLab Community Edition
- GitLab Community Edition Documentation
- Installation
- GitLab Community Edition Update
- GitLab Architecture Overview
- GitLab repository on GitLab
- GitLab repository on GitHub
Additional components:
Other resources:
- Installing GitLab in your local network or your own PC and setting it up to work perfectly, with a guide to change SMTP settings
- Archlinux Wiki
- https://blog.netways.de/2012/06/29/web-oberflache-fur-git-gefallig/
- https://github.com/gitlabhq/gitlab-public-wiki/wiki/Comparison-to-other-Git-web-interfaces
Using under openSUSE:
- https://gist.github.com/rriemann/5163741
- https://gist.github.com/jniltinho/5565606
- https://github.com/n3rdbeere/Installation-guide-for-GitLab6-on-SLES11/blob/master/README.md
- http://www.badzilla.co.uk/openSUSE-12-3-Installation-of-GitLab-Nginx-Apache-and-Drupal-PHP