終端運行git
—————————————————————————————————————————————————————github
安裝Cocoapodsjson
daxiong:~ dc017$ sudo gem install cocoapodsspa
daxiong:.cocoapods dc017$ gem sources -lcode
更新orm
daxiong:.cocoapods dc017$ sudo gem update —systemrem
Cocoapods 導入第三方庫的方法文件上傳
1查看有沒有jsonit
daxiong:~ dc017$ pod search jsonio
2打開CocoaPods
daxiong:~ dc017$ open ~/.cocoapods/
3建立插入條件
touch Podfile
4插入
pod install
能夠在Git上查找相對應的第三方庫,裏面有安裝方法 和使用方法
如:ZXing就是第三方庫 能夠識別二維碼和生成二維碼幾條性的庫
Cocoapods 安裝
cd .. 上一層
open ./ 打開當前文件夾
——————————————————————————————————————————————————————————
將項目文件上傳至Git
第一步打開終端進入桌面
daxiong:~ dc017$ cd desktop
第二步進入項目
daxiong:desktop dc017$ cd Plist(要上傳的文件名稱)
第三步在終端中輸入如下代碼
daxiong:Plist dc017$ git init
//這是限定條件
daxiong:Plist dc017$ touch .gitignore
daxiong:Plist dc017$ open .gitignore
第四步在終端輸入如下代碼
daxiong:Plist dc017$ git add .
daxiong:Plist dc017$ git commit -m 「firstncommit」
第五不在終端輸入如下代碼
git remote add origin https://github.com/Pioneer0058/Game.git git push -u origin master