Skip to content

Instantly share code, notes, and snippets.

@apphands
Last active October 12, 2023 12:21
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save apphands/e695917bb51530be66c35d5d753357ca to your computer and use it in GitHub Desktop.
Save apphands/e695917bb51530be66c35d5d753357ca to your computer and use it in GitHub Desktop.
To fix the Git error: "remote: error: GH001: Large files detected."
git filter-branch -f --index-filter 'git rm -r -f --ignore-unmatch <FILE_TO_REMOVE>' HEAD
@SimonFricker
Copy link

thank you so much

@koolamusic
Copy link

Thank you so much, This was a life saver

@koolamusic
Copy link

You might also want to include git push --force [repo_nickname] [branch] after the above command

@jacksonleite
Copy link

Thank you! This was a great help.

@roey-angel
Copy link

very much needed, thanks!

@mujeebishaque
Copy link

great help!

@wellesaquino
Copy link

This command helped a lot, thanks! In addition, one of my projects has a lot of commits and the process was very slow. I found this free software that does the same thing, but very fast: (https://github.com/rtyley/bfg-repo-cleaner)
I hope to help

@IFEE09
Copy link

IFEE09 commented Nov 22, 2021

Amazing, thank you so much.

@vuduchong209305
Copy link

thank you so much

@om0wt
Copy link

om0wt commented Oct 12, 2023

Thanks @apphands, it helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment