Video add in Html not sync with Github

huangapple go评论58阅读模式
英文:

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:

    &lt;video class=&quot;w-100&quot; muted autoplay loop&gt;
    &lt;source src=&quot;./assets/video/ap-intro.mp4&quot; type=&quot;video/mp4&quot;&gt;
    &lt;/video&gt;

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.

huangapple
  • 本文由 发表于 2023年5月26日 14:13:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/76338072.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定