Skip to content

Instantly share code, notes, and snippets.

@jgambill
Last active August 29, 2015 14:01
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 jgambill/bbf4bfe8e3e01d2bffa4 to your computer and use it in GitHub Desktop.
Save jgambill/bbf4bfe8e3e01d2bffa4 to your computer and use it in GitHub Desktop.
remove a file from the repo without deleting it from the local file system #git
# add the file to .gitignore, then...
git rm --cached filename
git commit -am 'removed filename'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment