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.

Revisions

  1. eltone created this gist Jun 25, 2013.
    4 changes: 4 additions & 0 deletions gitcleanallchildren
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    dir | ForEach-Object {
    git --git-dir=$($_.FullName)\.git --work-tree=$($_.FullName) clean -fdx
    Write-Host $_.FullName cleaned.
    }