Install and configure GitLab on CentOS
GitLab uses Ruby on Rails as an open-source version management system to implement a self-hosted Git project repository. It can access public or private projects through the Web interface. It has similar functions as Github, allowing you to browse source code, manage defects, and annotate.
Install
Follow the online Installation Guide.
Https://about.gitlab.com/downloads/#centos6
Logon Configuration
Access the server address directly, such as http: // 192.169.1.22/. A logon window is displayed. the username and password are as follows:
Username: root
Password: 5 iveL! Fe
Create a project
Click "+" on the navigation bar to go to the Project Creation page.
The namespace is used to determine the project to which the project belongs. You can select the User as the owner or the group. This will affect the project url, such as selecting the Team 1 to create project Test1, then project Test1 will be visible in this group team1, access path is https://domain.com/team1/Test1
Visibility Level indicates the permission Level, which can be divided into three types:
Private, accessible only by yourself or members in the group
Internal access by all login users
Public, accessible to all
Add SSLKey
The code transfer protocol between git repositories mainly uses the ssh protocol. Generally, git users who use gitlab do not have a password. Therefore, you cannot log on directly through ssh. You need to use ssh-keygen to upload the public key and use asymmetric encryption for transmission.
Ssh-keygen-t rsa-C "$ your_email"
Cat ~ /. Ssh/id_rsa.pub
The first command above generates a pair of private keys and public keys, respectively ~ /. Ssh/id_rsa and ~ /. Ssh/id_rsa.pub. After the command is completed, you will be asked to save the address. Press enter by default. Run the second command to view the public key string and copy it manually.
On the Panel, choose Profile Settings> SSH Keys> Add SSH Keys. Copy the content in id_rsa.pub in the previous step and paste it into the input box. Save the content. Now you can upload the code.