Как перенести большие файлы в Git-LFS?

Выдает ошибку при пуше на гитхаб из-за размера видео. Перед этим вводила команду
$ git lfs track "video/writing.mov"
Tracking "video/writing.mov"
Но результата не дало.

$ git push -u origin main
Enumerating objects: 95, done.
Counting objects: 100% (95/95), done.
Delta compression using up to 8 threads
Compressing objects: 100% (92/92), done.
Writing objects: 100% (95/95), 252.10 MiB | 12.79 MiB/s, done.
Total 95 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), done.
remote: error: Trace: 193defcd7f8850570b72b885521c4a0660239229d4498e2cad2fafe675178e86
remote: error: See https://gh.io/lfs for more information.
remote: error: File video/writing.mov is 131.92 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To https://github.com/dubina-valeriia/faststudentshelp.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/dubina-valeriia/faststudentshelp.git'

Команда статус выдает:
$ git status
Refresh index: 100% (82/82), done.
On branch main
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   video/writing.mov

Untracked files:
  (use "git add <file>..." to include in what will be committed)

no changes added to commit (use "git add" and/or "git commit -a")
  • Вопрос задан
  • 131 просмотр
Пригласить эксперта
Ответы на вопрос 1

Tip: If you get an error that "this exceeds Git LFS's file size limit of 100 MB" when you try to push files to Git, you can use git lfs migrate instead of filter-repo or the BFG Repo Cleaner, to move the large file to Git Large File Storage. For more information about the git lfs migrate command, see the Git LFS 2.2.0 release announcement.

Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы