Skip to content

Instantly share code, notes, and snippets.

@bobdobbalina
Last active February 12, 2021 19:02
Show Gist options
  • Save bobdobbalina/770a98756033af90af46d73899f74578 to your computer and use it in GitHub Desktop.
Save bobdobbalina/770a98756033af90af46d73899f74578 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