Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnss/1ba9bf64827aff1452e704cb36851cf0 to your computer and use it in GitHub Desktop.
Save johnss/1ba9bf64827aff1452e704cb36851cf0 to your computer and use it in GitHub Desktop.
Delete large file from github history when dealing with remote rejected pre-receive hook declined Large files detected this exceeds GitHub's file size limit
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment