git 上傳大文件;remote: fatal: pack exceeds maximum allowed size


昨天我進行整理了kawaks的游戲rom; 整個rom下載下來超4G;在通過ssh上傳到git時,一直報remote: fatal: pack exceeds maximum allowed size錯誤;

項目地址:https://github.com/Game-Emulators/Kawaks-ROMs

通過搜索,找到了git上傳文件的方法,git-lfs項目;

項目網站:https://git-lfs.github.com/

項目介紹:Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

大概解決思路:

  • 下載git-lfs插件:apt install git-lfs;
  • 然后按照網站上的指引進行配置,並重新提交;
  • 詳細可以參考官方文檔;

官方步驟:

保持更新;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM