GitLab使用教程

1、本地安装git
2、Git 配置用户名密码
git config --global user.name “Administrator”
git config --global user.email “[email protected]
3、创建一个新项目
流程:
登录到gitlab服务器创建项目
本地创建相同文件名称的项目
PC打开Git Bash 进入到项目目录下初始化
创建readme.md
添加当前工作目录文件到index
生成一个commit
推送GitLab服务器
Eg:
GitLab使用教程
GitLab使用教程
注:
如果提交到服务器出现下图2错误,则需要修改修改gitlab上git服务器的地址为服务器ip
cd /opt/gitlab/embedded/service/gitlab-rails/config
vim gitLab.yam
GitLab使用教程
GitLab使用教程