Large files detected git-lfs already added code example
Example 1: remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch <path of the file>'
or if you have a large file you want to delete use
git stash
git stash apply
Example 2: remote error large files detected
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch fixtures/11_user_answer.json'