当前位置: 首页 > news >正文

gitlab图形化界面使用

gitlab使用

创建用户

image-20231121195605174

image-20231121195713844

image-20231121200622776


上面是创建用户基本操作

  • 修改密码

image-20231121202018093

image-20231121202042676

创建组

image-20231121202230320

image-20231121202433947

  • 给组添加用户

image-20231121202533958

image-20231121202717171

image-20231121202739420

image-20231121203002684

image-20231121203332739

image-20231121203422465

创建项目

image-20231121203518448

  • 选择空白项目

image-20231121203642789

退出root用户,切换其他用户

在服务器上创建ssh密钥 使用ssh-ketgen 命令 新服务器上创建的

[root@gitlab ~]# ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:n/V2kCiwwm2UfBsnQLm17eXUCBiBByyPbefmz5oQvfU root@gitlab
The key's randomart image is:
+---[RSA 2048]----+
|       o++o+     |
|      ..+o+ .    |
|       ==++o.. o |
|     ..o==o=..+..|
|      o.So+.++o  |
|       o oo*.o.. |
|        .o+   E .|
|         ..o . . |
|          ooo    |
+----[SHA256]-----+
[root@gitlab ~]# cat .ssh/id_rsa.pub 
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSG2nlniwWPrHMofbiFoc10awxYR7iMyuzG/3y2+wiY1i3IoO4Gz6qe2nQHK9uC0T30R9y2MtMpSnpcV1SMKqiIVR19FhHPU+8hgu3tKu6wQBy51pDj9sMF7jqbt2MVqUZtbEoFZT1f3mRQGGPAU5Z66Bysd7yxbNs1YfvfhPW/x1ghyQ8SwsEGsRdPGY4TrTnCXG5S7XaaWZ7JQYRbDEKT3WrQXBSv6VHV3tJ4UAcfkaN6TGyXnVRmSdm6pwcdKXVHkV9iHO+wNaxTrxxP7TWT8IIXBWoM5EZGeJ7JGa0//7faHKD0FOG0c6O37vT0s+Iv6tKKoZkTQxNLr4Y2mtr root@localhost.localdomain
  • 将上面的复制到下面

image-20231121204636109

  • 相当于做身份验证
# 安装
[root@localhost ~]# yum install git -y
[root@localhost ~]# git config --global user.name "lin"
[root@localhost ~]# git config --global user.email "2@qq.com"
[root@localhost ~]# git config --global color.ui true
[root@localhost ~]# git config --list\
> ;
user.name=lin
user.email=2@qq.com
color.ui=true
[root@localhost ~]#  git clone git@192.168.10.128:haidi/ddv.git   # 仓库地址是自己的

image-20231121205716613

  • 添加文件
[root@localhost ~]# cd ddv
[root@localhost ddv]# echo '我是开发java' > java.jsp
[root@localhost ddv]# git branch java
[root@localhost ddv]# git checkout
[root@localhost ddv]# git branchjava
* main
[root@localhost ddv]# git checkout java
切换到分支 'java'
[root@localhost ddv]# git branch
* javamain
[root@localhost ddv]# git add .
[root@localhost ddv]# git commit -m "first";
[java 0cd745a] first1 file changed, 1 insertion(+)create mode 100644 java.jsp
[root@localhost ddv]# git status
# 位于分支 java
无文件要提交,干净的工作区
[root@localhost ddv]# git push    origin  java
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 276 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: 
remote: To create a merge request for java, visit:
remote:   http://192.168.10.128/haidi/ddv/-/merge_requests/new?merge_request%5Bsource_branch%5D=java
remote: 
To git@192.168.10.128:haidi/ddv.git

image-20231121210910963

  • 可以看见当前提交的分支

image-20231121211001303

  • 合并分支

image-20231121211111894

  • 添加信息

image-20231121211344153

同意合并 - 使用 wang 用户

image-20231121211621659

image-20231121211759406

image-20231121211835762

可以查看到main分支中看到对应的文件

image-20231121211911940

http://www.lryc.cn/news/238447.html

相关文章:

  • Vue使用基本教程(基本介绍及对比,初步使用,构建项目,编辑器等)
  • 基恩士软件的基本操作(四,快速编辑plc技巧)
  • 通达信的ebk文件
  • 城市易涝点怎么安装万宾科技内涝积水监测仪?
  • css取消移动端长按元素背景色
  • inBuilder低代码平台新特性推荐-第九期
  • C语言——递归实现汉诺塔游戏
  • 使用MONAI轻松加载医学公开数据集,包括医学分割十项全能挑战数据集和MedMNIST分类数据集
  • dvwa 代码注入impossible代码审计
  • 909-2015-T1
  • selenium下载安装对应的chromedriver并执行
  • 1.什么是Angular?
  • Qt ListWidget
  • 微服务实战系列之加密RSA
  • Centos 里面为什么有的磁盘命名/dev/vda 有的是/dev/sda ?
  • P9232 [蓝桥杯 2023 省 A] 更小的数(区间DP)
  • 【ArcGIS Pro二次开发】(77):ArcGIS Pro中图层的获取与解析
  • Robust Optimization, imperfect CSI, CSIT and CSIR
  • 【数据结构】栈详解
  • 大结局!OpenAI创始人奥特曼和 Greg Brockman 将加入微软!!!
  • Linux QT交叉编译环境安装
  • 媲美有线操作,支持4KHz响应和无线充电的游戏鼠标,雷柏VT3S上手
  • 【Flask使用】全知识md文档,4大部分60页第3篇:状态cookie和session保持
  • 类方法,静态方法和实例方法的区别及应用场景
  • CleanMyMac X4.16免费版mac电脑一键清理电脑垃圾工具
  • 汽车级低压差稳压器LDO LM317BD2TR4G原理、参数及应用
  • 多对多的创建方式与Ajax
  • 【Linux网络】详解使用http和ftp搭建yum仓库,以及yum网络源优化
  • 算法设计与分析算法实现——动态规划最大子段
  • JavaWeb-JVM内存管理机制