Skip to content

Instantly share code, notes, and snippets.

@Quilted
Created May 24, 2011 23:06
Show Gist options
  • Save Quilted/989969 to your computer and use it in GitHub Desktop.
Save Quilted/989969 to your computer and use it in GitHub Desktop.
Delete untracked files (not excluded via .gitignore) from a git repo
rm $(git ls-files -o --exclude-standard)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment