diff --git a/Generate-GitBranches.ps1 b/Generate-GitBranches.ps1 index 59065d2f..66e5d90b 100644 --- a/Generate-GitBranches.ps1 +++ b/Generate-GitBranches.ps1 @@ -64,7 +64,7 @@ try { } "Checking out files" | Write-Host -ForegroundColor Green - $masterTrackedFiles | Get-Item -Force | Remove-Item -Recurse -Force + Get-ChildItem . -Exclude '.git', 'build/Dockerfile', 'update/Dockerfile', 'build.sh', 'notify.sh', '.gitlab-ci.yml', '.env', '.state' -Force | Remove-Item -Recurse -Force git checkout master -- build if ($LASTEXITCODE) { throw } git checkout master -- update