MacOs 安装局域网 gitlab 记录

1、安装git

bash 复制代码
brew install git
==> Downloading https://homebrew.bintray.com/bottles/git-2.7.0.el_capitan.bottle
######################################################################## 100.0%
==> Pouring git-2.7.0.el_capitan.bottle.tar.gz
==> Caveats
The OS X keychain credential helper has been installed to:
  /usr/local/bin/git-credential-osxkeychain

The "contrib" directory has been installed to:
  /usr/local/share/git-core/contrib

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git
==> Summary
🍺  /usr/local/Cellar/git/2.7.0: 1,407 files, 235.8M

2、配置git账户和生成token

bash 复制代码
git config --global user.name "programmer"
git config --global user.email "15020063781@139.com"

ssh-keygen -t rsa -C "15020063781@139.com"

保存key的位置

/var/root/.ssh/id_rsa

3、配置gitlab

复制代码
git config --global http.proxy http://192.168.43.232:1080

3、安装gitlab-ci-multi-runner

bash 复制代码
brew install gitlab-ci-multi-runner
==> Downloading https://homebrew.bintray.com/bottles/gitlab-ci-multi-runner-0.7.
######################################################################## 100.0%
==> Pouring gitlab-ci-multi-runner-0.7.2.el_capitan.bottle.1.tar.gz
🍺  /usr/local/Cellar/gitlab-ci-multi-runner/0.7.2: 4 files, 11.8M
相关推荐
-KamMinG6 分钟前
“从零到一:使用GitLab和Jenkins实现自动化CI/CD流水线”
自动化·gitlab·jenkins
FreeBuf_1 小时前
苹果用户速更新!macOS存严重漏洞,用户隐私数据面临泄露风险
macos
Thomas21432 小时前
macos deepctr_torch虚拟环境配置
macos
wxl7812272 小时前
MacOS 运行CosyVoice
macos·cosyvoice·语音自然
在未来等你2 小时前
Elasticsearch面试精讲 Day 14:数据写入与刷新机制
大数据·分布式·elasticsearch·搜索引擎·面试
柯南二号2 小时前
【Gitlab】Ubuntu 20.04服务器部署Gitlab
git·gitlab
QX_hao2 小时前
【gitlab】--安装部署
gitlab
phac1232 小时前
git 如何直接拉去远程仓库的内容且忽略本地与远端不一致的commit
大数据·git·elasticsearch
在未来等你2 小时前
Elasticsearch面试精讲 Day 11:索引模板与动态映射
大数据·分布式·elasticsearch·搜索引擎·面试
lichong9512 小时前
【混合开发】vue+Android、iPhone、鸿蒙、win、macOS、Linux之video 的各种状态和生命周期调用说明
android·vue.js·macos