Skip to content

Instantly share code, notes, and snippets.

@alexcalaca
Created May 8, 2018 01:34
Show Gist options
  • Save alexcalaca/1d1db5c098fede327ea2b2b81fcb7e31 to your computer and use it in GitHub Desktop.
Save alexcalaca/1d1db5c098fede327ea2b2b81fcb7e31 to your computer and use it in GitHub Desktop.
Github-cheat sheet-my notes
Remove files from the repository based on your .gitignore without deleting them from the local file system
git rm --cached `git ls-files -i -X .gitignore`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment