1.git的基本使用指令
git init 初始化git仓库
git add . 添加当前文件夹下的所有文件
git status 显示状态
git commit 提交代码
git commit -m ‘注释’ 提交代码加注释
git log 看提交记录
git push 推送
git push origin master 推送到远程master分支
git push origin ‘版本号’ 按照版本号推送到远程
git remote add origin <URL> 关联远程仓库
git tag -a ’版本’ -m ‘描述’ 打标签
git push - -tags 提交到远程
git tag -d 1.0.0 删除标签
git push origin --delete 1.0.0 推送上去
2.cocoapods
2.1cocoapods的基本使用
pod init 生成Podfile文件
pod –version 查看版本号
pod search AFN 搜索
pod update 只有在你需要更新库到更新的版本时候用
pod install 来安装新的库,即使你的工程里面已经有了Podfile,并且已经执行过pod install命令了;所以即使你是添加或移除库,都应该使用pod install
Podfile注意:use_frameworks!使用swift打开
没必要传pods文件夹
.gitignore 加入
#CocoaPods
Pods/
2.3cocoapods的原理
2.2cocoapods的其他相关
1.如何安装cocoaPods http://www.jianshu.com/p/9e4e36ba8574
2.如果ruby,gem都更新了,pod还不能用 http://blog.youkuaiyun.com/mx666666/article/details/53332263
3..Cocoapods想深入了解, 可查看这网站 https://guides.cocoapods.org/
3.spec文件
由2知道spec是一个索引文件.
官网规范https://guides.cocoapods.org/syntax/podspec.html
创建spec命令
pod spec create XXX
比较不错的说明博客
https://blog.youkuaiyun.com/huachen206/article/details/52072770