一、Linux服务端配置 git
- 安装
yum install -y git
查看版本git --version
image.png
- 服务器端创建 git 用户,用于管理 Git 服务
[root@localhost home]# id git
id: git:无此用户
[root@localhost home]# useradd git
[root@localhost home]# passwd git
- 服务器端创建 Git 仓库,修改 git 仓库的 owner 修改为 git
创建mkdir test.git
初始化git init --bare test.git/
修改文件群组chown -R git:git test.git/
image.png
至此,服务端 Git 环境准备完毕.
配置私有 cocoapods 仓库,网上文章其实很多的,这里直接引用一篇了
手把手教你搭建cocoapods私有仓库
配置过程中发现的问题:
1.git push的出错处理 ! [remote rejected] master -> master (n/a (unpacker error))
后续有补充会继续。。。