Gitkeep #Coloca o .gitkeep em todos os subdiretorios vazios Get-ChildItem -Path . -Recurse -Directory | Where-Object { -not ( $_ | Get-ChildItem ) } | ForEach-Object { New-Item "$($_.FullName)/.gitkeep" -ItemType "file" }