in Git ~ read.

Git - github push large files

  • Steps
//1、download git-lfs
brew install git-lfs

//2、install
git lfs install

//3、add track file
git lfs track "large file path"

//4、add track gitattributes
git add .gitattributes

//5、commit gitattributes
git commit -m "add gitattributes"

//6、push gitattributes
git push

//7、add large file
git add largeFilePath

//8、add commit for large file
git commit -m "commit log"

//9、push large file
git push  
comments powered by Disqus