Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Last active October 14, 2025 16:34
Show Gist options
  • Select an option

  • Save joshdholtz/4497670 to your computer and use it in GitHub Desktop.

Select an option

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