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//查看狀態(tài)
git add .//添加文件到緩沖區(qū)
git commit -m "描述"http://從緩沖區(qū)提交代碼到倉庫
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//關(guān)聯(lián)本地倉庫和遠程倉庫。
git push -f origin master//將本地庫的代碼推到遠程庫
git push --tags//將本地創(chuàng)建的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恢復(fù)遠程分支
mac終端清屏與終止當(dāng)前進程的快捷鍵
清屏:command + k
終止當(dāng)前進程:control + z