一、Linux服務(wù)端配置 git
- 安裝
yum install -y git
查看版本git --version

image.png
- 服務(wù)器端創(chuàng)建 git 用戶,用于管理 Git 服務(wù)
[root@localhost home]# id git
id: git:無此用戶
[root@localhost home]# useradd git
[root@localhost home]# passwd git
- 服務(wù)器端創(chuàng)建 Git 倉庫,修改 git 倉庫的 owner 修改為 git
創(chuàng)建mkdir test.git
初始化git init --bare test.git/
修改文件群組chown -R git:git test.git/

image.png
至此,服務(wù)端 Git 環(huán)境準備完畢.
配置私有 cocoapods 倉庫,網(wǎng)上文章其實很多的,這里直接引用一篇了
手把手教你搭建cocoapods私有倉庫
配置過程中發(fā)現(xiàn)的問題:
1.git push的出錯處理 ! [remote rejected] master -> master (n/a (unpacker error))
后續(xù)有補充會繼續(xù)。。。