Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Last active February 12, 2021 13:01
Show Gist options
  • Save joshdholtz/4497670 to your computer and use it in GitHub Desktop.
Save joshdholtz/4497670 to your computer and use it in GitHub Desktop.
Remove files from updated .gitignore
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached
### Alias in .zshrc or .bashrc because too hard to remember
# alias ungit="git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment