Gitlab uploads

Gitlab add a group, create users, create projects
1) to create a group
to create a group with administrator root, a group which can have multiple projects branch, it can be developed and added to the group which set permissions,
different groups is different from the company's development projects or service module, add a different set of different developers can realize the development set permissions
management

 

 

 

 

2) Create a user
to create a user, you can choose Regular or type Admin.

 

 After creating the user, change the password immediately

 

 3 ) Add the user to the group
select a user group to carry out Members member of the management group

 

Gitlab users in the group inside 5 different rights:
the Guest : You can create Issue , comment, can not read and write the repository

Reporter : can clone the code, can not be submitted, QA , PM can give this authority

Developer : can clone the code, develop, submit, the Push , the average developer can give this authority

The Maintainer to : you can create a project, add a Tag , protection branch, add project members, edit items, core development can give this authority

Owner:可以设置项目访问权限 - Visibility Level、删除项目、迁移项目、管理组成员,开发组组长可以赋予这个权限 
4)在用户组中创建项目
以刚才创建的新用户身份登录到Gitlab,然后在用户组中创建新的项目

 

 源码上传到Gitlab仓库
下面来到IDEA开发工具,我们已经准备好一个简单的Web应用准备到集成部署。
我们要把源码上传到Gitlab的项目仓库中。
1)项目结构说明

 我们建立了一个非常简单的web应用,只有一个index.jsp页面,如果部署好,可以访问该页面就成功
啦!
2)开启版本控制

 

 

 

 

 2)提交代码到本地仓库
Add到缓存区

 

 在commit到本地仓库

 

 3)推送到Gitlab项目仓库中

 

 

 

 输入gitlab的用户名和密码,然后就可以把代码推送到远程仓库啦

 

 刷新gitlab项目

 

Guess you like

Origin www.cnblogs.com/dalianpai/p/12234540.html