Gitlab(2):添加用户和项目
一、添加用户
1.用root 管理员登陆。
2.点击“管理”(钳子)
3.点击【Users】
4.点击【New User】
5.输入Name和e-mail信息
6.选择新添加用户,设置用户登录密码
(1)点击“管理”(扳手)-》Users-》新添加用户-》Edits
(2)修改密码即可!
二、添加项目
1.点击“New Project”
2.填写项目名称,点击创建项目“create project”
3.创建成功
4.创建项目下面有对应的操作命令提示(Command line instructions)
(1)Git global setup
git config --global user.name "Ray"
git config --global user.email "[email protected]"
(2)Create a new repository
git clone [email protected]自己IP:Ray/Test.git
cd Test
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
(3)Existing folder
cd existing_folder
git init
git remote add origin [email protected]:Ray/Test.git
git add .
git commit -m "Initial commit"
git push -u origin master
(4)Existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin [email protected]:Ray/Test.git
git push -u origin --all
git push -u origin --tags