安装软件环境:
1. 安装git
2. 安装Xcode
配置git服务器环境:
1. 使用终端打开/etc/hosts文件,并在其中添加如下信息
10.10.*.* test.server
2. 假设当前用户的目录为 /home/zhangsan, 打开终端并执行下列命令
a. ssh [email protected], 生成.ssh文件夹
b. cp [email protected] ~/.ssh/
c . touch ~/.ssh/config
d. vim ~/.ssh/config,
剪辑输入:IdentityFile ~/.ssh/[email protected]
Host 10.103.*
Port ???
从git服务器取代码,切换到你的工作目录,执行下列命令:
git clone [email protected]:~/repo/ios/projectname.git
进入你的工程根目录,执行下列命令:
git submodule init
git submodule update
git config user.name '张三'
git config user.email '张三@163.com'
Mac下的git配置
猜你喜欢
转载自sundful.iteye.com/blog/2259082
今日推荐
周排行