search
HomeDevelopment ToolsgitDetailed explanation of how companies register Gitlab and create projects

How to register Gitlab in an enterprise? How to create a company project? The following article will introduce to you how to register Gitlab and create a company project. I hope it will be helpful to you!

Detailed explanation of how companies register Gitlab and create projects

Login

Generally, the gitlab of an enterprise is private, that is, it is deployed on the enterprise's private server and cannot be accessed from the external network. , such as icode.xiumubai.com/, when you join the company, the company will open a corporate email for you, and you can use this email to log in to the corporate gitlab.

Of course, individuals can also register their own gitlab account. You can visit Gitlab registration link to register.

Now that we have successfully entered the Gitlab panel, the two most common ones are our Group and Project.

Group is a group, which contains many projects. Your leader will invite you to the group where your project is located.

Project is a project, and your Leader will give you the permission to operate the Project. If your level is not very high, you may only have permission to submit code.

Generate SSH KEY

After taking over the project, we need to clone to the local area and modify the code as needed pushCome to the remote warehouse. At this time, you need to grant permissions to the local operation so that we can submit the local code to the remote warehouse. This time involves the configuration of ssh key , the following are the steps.

1. Set user name and user email

Open your terminal and enter the following two lines of commands

git config --global user.name "xiumubai"
git config --global user.email  "xiumubai@qq.com"

Command explanation: The first line is to configure the user name, and the second line is to configure the email address. After the configuration is successful, use git config --list to view the user

This means the configuration is successful

Generatessh key

Enter the commandssh-keygen -t rsa -C 'Mailbox', just press Enter all the way.

##Two files

id_rsa and id_rsa.pub## will be generated under the ~/.ssh folder. #Execute the following command to enter ssh, and then open the

id_rsa.pub

file. The content of this file is the ssh key<pre class='brush:php;toolbar:false;'>cd ~/.ssh cat id_rsa.pub</pre>## we need to configure.

#Configuration

ssh key

Return to the github panel

, click on my avatar, and then select

edit profile

After opening, there is SSH Keys

in the left navigation bar, copy and paste

in the input box The content of id_rsa.pub, enter a title, click Add key

After the addition is successful, You can see the added ssh key

Next we can submit our code locally to the remote warehouse. If it is in an enterprise, generally the groups and projects have been created. We just clone

the project, then develop it locally, submit the code to the warehouse, and repeat the process. However, as a developer, you need to understand everything. Let’s simply start by creating a group and project.

Create a group

If you don’t have any groups or projects before, your panel will be very clean

Click Create a group to create a group, enter a personalized name, because duplicate names will be detected here, and then click Create a group at the end to create. Pay attention to the permission control here. Private is a private warehouse, which can only be viewed by those with permission, while Public is accessible to everyone.

Create project

Next we create a Project,

Click New project to create a project. Here we select a blank project

Give the project a name and select Permissions are selected according to your own needs. Generally, in enterprises, you select Private and initialize a REAME.md file. Click Create Project

Project created successfully

Add developer & permissions

Next we add developers to the project. This operation is also the work of the leaders in the company. If you have just entered the company and are at a relatively low level, you do not have this permission to operate.

In Porject information, select Members

After entering the page, click in the upper right corner invite members

In the pop-up window, search for members

based on username or email. Among them, role role identities are The following differences:

  • Guest: Guest role: This role can create issues and make comments in the project but cannot view or modify the GitLab project code.
  • Reporter: Tester of the GitLab project: This role has additional permissions to view and clone the code of the Gitlab project based on the Guest role permissions, but cannot submit the project code, that is, it can only be viewed but not change.
  • Developer: Project developer of GitLab project: This role can clone, develop, and submit project code.
  • Maintainer: GitLab project administrator: This role can create projects, add tags, protect branches, add project members, and edit projects. The core RD leader can grant this authority.
  • Owner: The Git system administrator is Administrator: This role has supreme authority. The development team leader can grant this permission.

Finally select an expiration time, which is chosen based on the actual situation

After setting it, click Invite to add it .

After the addition is successful, you can see the member you just invited in the list. You can set his permissions here or remove him. It is very convenient to manage each developer in the project.

(Learning video sharing: Basic Programming Video)

The above is the detailed content of Detailed explanation of how companies register Gitlab and create projects. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:掘金社区. If there is any infringement, please contact admin@php.cn delete
gitlab如何将项目恢复到上一个版本号gitlab如何将项目恢复到上一个版本号Mar 27, 2023 pm 07:09 PM

GitLab是一个为开发者提供的版本管理和协作工具,它的历史版本可以让用户轻松地找回之前的代码。有时候我们可能不小心更新了一个错误的代码,或者意外地删除了一些文件,这时候我们就需要恢复到之前的某个版本,以便重新开始工作。本文主要介绍如何在GitLab上恢复到上一个版本号。

如何在GitLab上进行第一次登录并更改密码如何在GitLab上进行第一次登录并更改密码Mar 24, 2023 pm 05:46 PM

GitLab是一种基于Web的Git版本控制库管理软件,旨在帮助开发团队更好地协同工作,提高工作效率。当您第一次登录GitLab时,系统会提示您要更改初始密码以确保账户安全。本文将为大家介绍如何在GitLab上进行第一次登录并更改密码。

聊聊Gitlab中如何设置保护分支并且提交PR聊聊Gitlab中如何设置保护分支并且提交PRMar 30, 2023 pm 09:01 PM

本篇文章进行Gitlab的学习,聊聊如何设置保护分支并且给自己的Leader提交一个PR,希望对大家有所帮助!

如何利用GitLab进行项目文档管理如何利用GitLab进行项目文档管理Oct 20, 2023 am 10:40 AM

如何利用GitLab进行项目文档管理一、背景介绍在软件开发过程中,项目文档是非常重要的资料,不仅能够帮助开发团队了解项目的需求和设计,还能提供给测试团队和客户参考。为了方便项目文档的版本控制和团队协作,我们可以利用GitLab来进行项目文档管理。GitLab是一个基于Git的版本控制系统,除了支持代码管理,还可以管理项目文档。二、GitLab环境搭建首先,我

python中gitlab库有什么用python中gitlab库有什么用May 16, 2023 pm 06:01 PM

安装首先需要安装python-gitlab库pip安装sudopipinstall--upgradepython-gitlab源码安装gitclonehttps://github.com/python-gitlab/python-gitlabcdpython-gitlabsudopythonsetup.pyinstall用法CLI用法首先需要对环境进行配置才能使用cli,需要提供一个配置文件,指明gitlabserver信息以及连接参数,配置文件格式为INI,样例如下:[global]defau

PHP开发:使用 GitLab CI/CD 进行持续集成和持续部署PHP开发:使用 GitLab CI/CD 进行持续集成和持续部署Jun 14, 2023 pm 02:36 PM

随着互联网的发展和应用场景的不断增多,越来越多的企业和开发者开始使用PHP语言进行网站和应用的开发。而在开发过程中,持续集成和持续部署已经成为一种趋势,可以大大提高开发效率和产品质量。GitLabCI/CD作为一种工具来实现持续集成和持续部署已经受到了广泛的关注和使用。GitLab是一个用于管理和部署软件代码的开源工具,可以实现代码版本控制、项目管理、代码

如何在GitLab中设置访问权限和用户角色如何在GitLab中设置访问权限和用户角色Oct 20, 2023 am 11:57 AM

如何在GitLab中设置访问权限和用户角色GitLab是一个功能强大的开源代码托管平台,它不仅可以帮助团队轻松管理和协作开发代码,还能提供灵活的访问权限和用户角色设置。在这篇文章中,我们将探讨如何在GitLab中设置访问权限和用户角色,并提供具体的代码示例供参考。一、设置用户角色在GitLab中,用户角色主要分为Owner、Maintainer、Develo

如何下载GitLab服务器上的代码到本地如何下载GitLab服务器上的代码到本地Mar 24, 2023 pm 05:45 PM

在本地下载GitLab服务器上的代码可以让你更方便地修改和管理代码。本文将介绍如何下载GitLab服务器上的代码到本地。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools