最近在做項目(用到有盾的SDK ,opencv2大小超過100M)遇到了上傳文件大小超過100M,網(wǎng)上解決方法資料很多,這個是我自己解決項目的方法 總結(jié)一下
官網(wǎng)地址:https://git-lfs.github.com/?
用Homebrew安裝 lfs? (網(wǎng)上查資料)
步驟 :
1 終端安裝Homebrew
?? 2 官網(wǎng)下載lfs
? 3? 解壓之后 進入到git-lfs目錄下 執(zhí)行? brew install git-lfs
? lfs目前已經(jīng)安裝完畢,接下來是操作上傳大于 100m的文件
步驟:
1 cd 項目
2 git lfs install
3 git lfs track("超過100M 文件的路徑") 此時會生成一個 .gitattributes文件
4 git add .gitattributes
5? git add 超過100M 文件的路徑
6? git commit -m "上傳描述 "
7 git push?
至此上傳文件結(jié)束