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//查看狀態(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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容