Skip to content

Instantly share code, notes, and snippets.

@sbtk44
Created August 13, 2016 13:35
Show Gist options
  • Select an option

  • Save sbtk44/e93f782d6f03ee46acc640e8d5e5972b to your computer and use it in GitHub Desktop.

Select an option

Save sbtk44/e93f782d6f03ee46acc640e8d5e5972b to your computer and use it in GitHub Desktop.
git addしてないuntrackedファイルを一括削除。git cleanだとignoreファイルまで削除されるので
git status | grep '\t' | awk '{print $1}' | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment