第一步:进入集群并创建project和namespace



第二步:配置gitlab的端口和挂载




为什么要对这些端口和数据卷挂载呢?

参考官方文档:https://docs.gitlab.com/ee/install/docker.html
重置密码 shell>gitlab-rake “gitlab:password:reset”


git的使用
一、克隆代码
shell>mdkir javademo
shell>cd /javademo
shell>git clone https://codeup.aliyun.com/613aded82bf07942fbc24954/gani/dev.git
二、将文件添加到暂存区
shell>git add .
三、将暂存区里的文件提交到本地仓库
---初次commit之前,需要配置用户邮箱及用户名,使用以下命令:
shell>git config --global user.email "you@example.com"
shell>git config --global user.name "Your Name"
shell>git commit -m "demo1"
四、用于管理远程仓库
shell>git remote -v
# 提交到 Github
shell> git remote add origin git@github.com:tianqixin/runoob-git-test.git
shell> git push -u origin master
shell>git remote rm name # 删除远程仓库
shell>git remote rename old_name new_name # 修改仓库名