Skip to content

Instantly share code, notes, and snippets.

@pawelsa
Created December 19, 2023 10:00
Show Gist options
  • Save pawelsa/381fc85d82658e153e1f476ecfa2c087 to your computer and use it in GitHub Desktop.
Save pawelsa/381fc85d82658e153e1f476ecfa2c087 to your computer and use it in GitHub Desktop.
Remove all files from version control according to .gitignore
git rm --cached `git ls-files -i -c --exclude-from=.gitignore`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment