The company previously used SVN for project management. Because the SVN code library is centrally managed and offline updates are not supported, SVN was migrated to git, git uses a distributed system that allows you to view, write, and submit code locally from the git server. Later, because git does not have a web page, all operations are performed in the background. In contrast, gitlab is a git project management software of high-end foreigners. You can add it on the WEB page, delete A project, user, SSHKEY, and so on. You can view and modify the source code in a browser.
Gitlab Introduction: Gitlab is an open-source project management program developed with Ruby on Rails. You can access public or private projects through the WEB interface. It has similar features as Github, allowing you to browse source code, manage defects, and comment. Gitlab official documentation supports Debian/Ubuntu system, my gitlab Server is a ubuntu-12.04.2, the specific installation please see gitlab official installation documentation.
Reference: Install GitLab on Ubuntu 12.04
1) Create and authorize the gitlabhq_production database on mysql.
# Create and authorize the gitlabhq_production Database
Create database if not exists 'gitlabhq _ production 'default character set 'utf8' COLLATE
'Utf8 _ unicode_ci ';
Grant select, lock tables, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON
'Gitlabhq _ production '. * TO 'gitlab' @ '192. 168.1.230 'identified by 'gitlab! @#';
# Modifying the gitlab Database Configuration File
Cd gitlab
Sudo-u git cp config/database. yml. mysql config/database. yml
Sudo cat config/database. yml
Production:
Adapter: mysql2
Encoding: utf8
Reconnect: false
Database: gitlabhq_production
Pool: 10
Username: gitlab
Password: "gitlab! @#"
Host: 192.168.1.243
# Initialize the gitlab Database
Sudo-u git-H chmod o-rwx config/database. yml
Sudo-u git-H bundle exec rake gitlab: setup RAILS_ENV = production
2) gitlab default installed user name: admin@local.host, password: 5 iveL! Fe, the user needs to change the password after the first login.
3) gitlab email reminder configuration, Account creation, and ssh key addition are all sent to users by email.
Modify the global configuration file git/. gitconfig. The email here is the Email address sent by gitlab.
Configure the SMTP service for sending emails from gitlab, gitlab/config/environments/production. rb.
When the Administrator creates an account for the user, the user's email will automatically receive the email sent by gitlab.
For more details, please continue to read the highlights on the next page:
GitLab details: click here
GitLab: click here
GitLab 5.3 upgrade considerations
Deploy GitLab on CentOS (self-managed Git project repository)