git_lab笔记
本文最后更新于273 天前,其中的信息可能已经过时,如有错误请发送邮件到3589035030@qq.com

# 1. 基础定义
本地仓库:在开发人员自己电脑上的Git存储库。
远程仓库:在远程服务器(如GitLab、GitHub等)上的Git存储库。
Clone:将远程仓库的内容复制到本地。
Push:将本地仓库的修改上传到远程仓库。
Pull:从远程仓库拉取最新的修改并合并到本地仓库。

# 2. 服务器部分
启动命令:
“`bash
gitlab-ctl start
“`

停止命令:
“`bash
gitlab-ctl stop
“`

重启命令:
“`bash
gitlab-ctl restart
“`

重新编译:
“`bash
gitlab-ctl reconfigure
“`

修改配置文件:
“`bash
vim /etc/gitlab/gitlab.rb
“`

查看默认密码:
“`bash
cat /etc/gitlab/initial_root_password
“`

开机禁用防火墙:
“`bash
systemctl disable firewalld
“`

关闭防火墙:
“`bash
systemctl stop firewalld
“`

# 3. web端操作
添加公钥到Git服务器
将id_rsa.pub中的内容添加到Git服务器(如GitLab)的SSH密钥设置中。

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
下一篇