Skip to content

Instantly share code, notes, and snippets.

@jtdp
Last active December 16, 2015 13:39
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 jtdp/5443305 to your computer and use it in GitHub Desktop.
Save jtdp/5443305 to your computer and use it in GitHub Desktop.
Git remove file but keep local copy. Note that when other repository clones pull from the same remote, their local copy of the file will be deleted unless they have modified it.
git rm --cached <filename>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment