英文:
Video add in Html not sync with Github
问题
我已经在Html中添加了一个视频文件,它运行得很完美,但我该如何与GitHub同步?
GitHub拒绝大文件,文件大小为470 MB。
我如何链接它?有任何替代方法吗?
我的代码:
<video class="w-100" muted autoplay loop>
<source src="./assets/video/ap-intro.mp4" type="video/mp4">
</video>
请帮助 🙂
英文:
I have added a Video file in Html and it works perfectly but how can I sync with GitHub?
Github rejects big files, the file size is 470 MB.
How can I link it? Any alternative methods?
My code:
<video class="w-100" muted autoplay loop>
<source src="./assets/video/ap-intro.mp4" type="video/mp4">
</video>
Please Help 🙂
答案1
得分: 3
你可以使用 Git LFS(大文件存储)将“Assets”文件夹上传到远程 Git 服务器,但需要在远程服务器上启用某些权限。你可以在 https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md 找到详细的说明。
英文:
I also encountered a similar issue. You can upload the 'Assets' folder to the remote Git server using Git LFS (Large File Storage), but there are certain permissions that need to be enabled on the remote server. You can find detailed instructions at https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论