怎么用Git上传上G的超大文件

  1. Download and install the Git command line extension. Once downloaded and installed, set up Git LFS and its respective hooks by running:
git lfs install

You’ll need to run this in your repository directory, once per repository.

  1. Select the file types you’d like Git LFS to manage (or directly edit your .gitattributes). You can configure additional file extensions at anytime.
git lfs track "*.csv"

Make sure .gitattributes is tracked

git add .gitattributes
  1. There is no step three. Just commit and push to GitHub as you normally would.
git add file.csv
git commit -m "Add super big file"
git push origin master

猜你喜欢

转载自blog.csdn.net/weixin_44064649/article/details/103190430