Skip to content

Instantly share code, notes, and snippets.

@naganowl
Created June 29, 2017 23:02
Show Gist options
  • Save naganowl/1a5dc601af8e130368e18768280af163 to your computer and use it in GitHub Desktop.
Save naganowl/1a5dc601af8e130368e18768280af163 to your computer and use it in GitHub Desktop.
Remove new (untracked) files from working directory
git status --porcelain | cut -c4- | xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment