Skip to content

Instantly share code, notes, and snippets.

@JessePreiner
Created December 20, 2017 17:42
Show Gist options
  • Save JessePreiner/d27745b3846a7f234884237ac0dcc682 to your computer and use it in GitHub Desktop.
Save JessePreiner/d27745b3846a7f234884237ac0dcc682 to your computer and use it in GitHub Desktop.
Remove all unadded untracked files in git using rm -rf (careful duh)
git status -s | awk '{if($1=="??") print $2}' | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment