Skip to content

Instantly share code, notes, and snippets.

@lanrion
Created April 20, 2014 03:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lanrion/11104201 to your computer and use it in GitHub Desktop.
Save lanrion/11104201 to your computer and use it in GitHub Desktop.
git remove remote cache file
git rm --cached asd
git commit -m "the file asd is gone from the repository"
@lopugit
Copy link

lopugit commented Sep 4, 2018

this does not remove large files added and removed from cache from the commit history and so will still give a large file error

See https://gist.github.com/lopugit/14f28b7e4db8225fcff32b990c19a2bb for the solution

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