SourceTree上传项目到git库
2016-07-22 本文已影响357人
space_between
首先贴上参考的链接地址:
https://segmentfault.com/q/1010000003041610
在iOS项目开发中,一个项目经常会由多人开发,采用git管理的好处这里不多说了!
CocoaPods可以非常方便的管理第三方库,具体的安装方式网上很多,在项目初期pods安装好第三方库后,通过SourceTree上传到git服务器上,会存在一个问题,默认会忽略把pods的库上传到git服务器上,需要把忽略的设置去掉。
具体步骤如下:
1、打开SourceTree点击右侧的设置

2、选择高级

3、点击编辑

进入到详细被忽略的文本中,把下面的Cocoapods的删除掉就OK了。

这样在SourceTree中本地的副本就会增加你所添加的pods文件,勾选所有pods文件提交就完成了。