GitLab 新项目引导

  |  

GitLab 新项目引导

摘要:本博文记录的是使用 GitLab 创建新项目后系统的引导提示,只作记录,以备不时之需。


Command line instructions
Git global setup

1
2
git config --global user.name "zhaotingrui"
git config --global user.email "1501789852@qq.com"

Create a new repository

1
2
3
4
5
6
git clone git@192.168.6.31:zhaotingrui/mp_echarts.git
cd mp_echarts
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder

1
2
3
4
5
6
cd existing_folder
git init
git remote add origin git@192.168.6.31:zhaotingrui/mp_echarts.git
git add .
git commit -m "Initial commit"
git push -u origin master

Existing Git repository

1
2
3
4
cd existing_repo
git remote add origin git@192.168.6.31:zhaotingrui/mp_echarts.git
git push -u origin --all
git push -u origin --tags