Git fix large files detected.

In this article let’s discuss about Git fix large files detected.. Let’s go through the following methods without any delay.

Method 1:

# Remove large file from git so you can push your commits again
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch fixtures/11_user_answer.json'

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

git rm --cached models/sample.h5

Hope the above solution works.

Realted Posts : Bash print lines that dont have a word