First, install gitlab
1. Install dependencies
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python
2. Set postfix boot from the start, and start, postfix support gitlab transmit function
systemctl enable postfix && systemctl start postfix
3. Download and install the installation package gitlab
# centos6 Address: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
# centos7 Address: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
# Select the corresponding version on demand, direct-date
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/........rpm
rpm -ivh ........rpm
4. Modify gitlab server configuration file to specify custom port and ip
vim /etc/gitlab/gitlab.rb
external_url "HTTP: // localhost: 6500"
# modify this line, pay attention to occupy the port
The reset and start GitLab
Reset gitlab-ctl reconfigure #
gitlab-ctl restart # starts, prompting ok: run is a success
6. Log gitlab create groups
# Use IP port login gitlab, change password
# Create a project group
# Create a user, the corresponding users into the corresponding group
Second, the migration Warehouse Code
--mirror http://192.168.0.12:6500/tree_house/wygz.git clone git
# Here is the link source git repository
cd wygz.git
Remote the SET-url Origin git http://192.168.0.5:6500/tree_house/wygz.git
# Here is a link to a new git repository
git push -f origin