Git Clean

Last modified: 
Monday, January 25th, 2016
Topics: 
Git

Use git clean to clean out untracked files in bulk.

git clean -di

Options

  • -d tells git clean to include untracked directories (directories are ignored by default).
  • -n performs a dry-run and tells you what would have been deleted.
  • -f immediately deletes all untracked files.
  • -i lists the files to be deleted and provides an interactive dialog for completing the operation.

References


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.