Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github如何上传超过100M的大文件 #14

Open
jerrychir opened this issue Jan 25, 2019 · 0 comments
Open

Github如何上传超过100M的大文件 #14

jerrychir opened this issue Jan 25, 2019 · 0 comments

Comments

@jerrychir
Copy link
Owner

Github如何上传超过100M的大文件

git lfs 下载

安装Git命令行扩展。只需要设置一次Git LFS。
在项目目录下,执行以下命令:

git lfs install

选择您希望Git LFS管理的文件类型(或直接编辑.gitattributes)。您可以随时配置其他文件扩展名。这一步成功后会生成一个gitattributes文件

 git lfs track “* .gif” --这里的 “ *.gif "就是你要上传的大文件的路径

添加并commit gitattributes文件

git add .gitattributes

然后再添加大文件到本地缓存区

 git add demo.gif
 git commit -m "提交项目演示gif图"
 git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant