Skip to content

Instantly share code, notes, and snippets.

@eltone
Created June 25, 2013 14:22
Show Gist options
  • Select an option

  • Save eltone/5858835 to your computer and use it in GitHub Desktop.

Select an option

Save eltone/5858835 to your computer and use it in GitHub Desktop.
dir | ForEach-Object {
git --git-dir=$($_.FullName)\.git --work-tree=$($_.FullName) clean -fdx
Write-Host $_.FullName cleaned.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment