CocoaPods & Git

pod命令

pod spec create XTProtocolManager//生成pod库配置文件

pod init//生成Podfile

pod lib lint//验证lib

pod repo push [repo] [podspec]

pod repo push [repo] [podspec]  --verbose --allow-warnings

cd ~/.cocoapods/repos    查看本地spec repo

pod repo add TYDomainProvider http://j7.hnxmny.com:8088/a/bifenwang/ios_libs/bfwSpec.git

pod repo push TYDomainProvider TYDomainProvider.podspec --sources=http://j7.hnxmny.com:8088/a/bifenwang/ios_libs/bfwSpec

存在依赖时

pod repo push TYDomainProvider TYDomainProvider.podspec --sources=http://j7.hnxmny.com:8088/a/bifenwang/ios_libs/bfwSpec,https://github.com/CocoaPods/Specs.git  --allow-warnings

http://j7.hnxmny.com:8088/a/bifenwang/ios_libs/bfwSpec

http://j7.hnxmny.com:8088/a/bifenwang/ios_code/XMNetworking

git命令

git init//初始化

git status//查看状态

git add .//添加文件到缓冲区

git commit -m "描述"//从缓冲区提交代码到仓库

git tag -a '0.0.1'  -m '描述'//添加tag

git tag //查看tag

git tag -d '0.0.1'//删除tag

git remote add origin https://github.com/xxx.git//关联本地仓库和远程仓库。

git push -f origin master//将本地库的代码推到远程库

git push --tags//将本地创建的tag推到远程库

git push origin :0.0.1//删除tag

git tag -d 1.0.0    #删除本地记录

git push origin :refs/tags/1.0.0    #删除远程记录

git reflog  操作记录

git checkout -b branch.name commitID      通过commitID恢复远程分支

mac终端清屏与终止当前进程的快捷键

清屏:command + k

终止当前进程:control + z

你可能感兴趣的:(CocoaPods & Git)