Git 操作
基本操作
查看當前git狀態
git status添加代碼到暫緩區
git add .提交代碼到本地
git commit -m ''remote 遠程倉庫
git remote add origin https://遠程倉庫push 到遠程倉庫
git push origin master版本標簽
git tag
git tag '版本'
git push --tags-
刪除tag
- 刪除本地tag
git tag -d 版本號 - 刪除遠程tag
git push origin --delete tag 版本號
- 刪除本地tag
Cocoapods
基本操作
創建spec文件
pod spec create 名字-
spec文件描述
- s.name 項目名字
- s.version 項目版本
- s.summary 項目摘要
- s.homepage 項目網站(github 上的網址)
- s.license 項目協議
- s.author 項目作者
- s.source 項目映射地址
- s.source_files 指定下載文件
提交審核
pod trunk register 郵箱 '名字' --verbose
pod trunk push spec文件.podspec驗證審核
pod spec lint spec文件.podspec私有庫pod
pod '庫的名字', :path => '路徑'