Исправление проблемы "большого файла"

Основной текст заметки

при попытке добавить git push -u origin master в github файла больше 100 MB вылезает ошибка вида

Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 88 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 8.45 MiB | 1.66 MiB/s, done.
Total 10 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 1 local object.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: c124be16894901cf8c9b34f6bd51a0c5
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File database_dump.sql is 118.17 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/solotony/grm-ru.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/solotony/grm-ru.git'

для ее устранения используется команда

git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch database_dump.sql'

Заметка написана: 31.07.2020

Теги заметки: git