Git&GitLab安装gitlab(rocky系统)

Git是一个版本控制工具:https://git-scm.cn/downloads/win

GitLab、Gitee、GitHub远程仓库:http://gitee.com http://github.com

1、关防火墙

复制代码
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart sshd
systemctl disable --now firewalld.service 
setenforce 0

2、安装解压

复制代码
[root@localhost ~]# yum install -y lrzsz

将压缩包拖进

3、解压文件:

复制代码
rpm -ivh gitlab-ce-18.6.2-ce.0.el9.x86_64.rpm 

4、进入修改ip

复制代码
[root@localhost ~]# cd /etc/gitlab/
[root@localhost gitlab]# ls
gitlab.rb
[root@localhost gitlab]# vim gitlab.rb 

gitlab_rails'time_zone' = 'Asia/Shanghai'

5、初始化:

gitlab-ctl reconfigure

6、启动:

gitlab-ctl start

7、浏览器访问:

8、获取root密码

9、复制密码

10、更改主页中文

11、更改时间和密码

更改时间:

更改密码:

12、创建项目

找到任意客户端当用户工作空间

13、gitlab端:修改密码

14、新建群组

15、SSH KEY密钥设置

16、创建分支、

相关推荐
louisgeek8 小时前
Git submodule 子模块
git
imDwAaY8 小时前
6篇文章讲清楚Git:Git 实用技巧:暂存现场、挑选提交与定位 Bug (5/6)
git·后端
imDwAaY8 小时前
6篇文章讲清楚Git:Git 团队开发实践:从 Pull Request 到版本发布 (6/6)
git·后端
誰能久伴不乏20 小时前
看懂 Git 团队协作全流程:分支、提交、PR、rebase 到底在干嘛
git
sunshine22 girl1 天前
git tag-项目流程
git
imDwAaY2 天前
6篇文章讲清楚Git:Git 远程协作:fetch、pull、push 到底有什么区别?(3/6)
git·后端
imDwAaY2 天前
6篇文章讲清楚Git:Git 撤销与恢复:reset、revert、restore 应该怎么选?(4/6)
git
用户73309646123092 天前
再也不怕手滑丢代码!给 git 高危操作加一层安全校验
git
广白2 天前
Git Tag 实战:从出包追溯到版本发布
前端·git·面试
Winlifes7 天前
我给 Codex 做了一个 Git 面板:分支树、提交历史和工作区操作
git