ArchCoder/llm-excel-plotter-agent
0
1$ErrorActionPreference = 'Stop'2$files = git ls-files3foreach ($f in $files) {4 if ($f -notlike 'backend/*' -and $f -ne 'backend') {5 git rm -q --ignore-unmatch -- "$f"6 }7}8Write-Output "-- staged removals --"9git status --porcelain=2 --branch10$staged = git diff --staged --name-only11if (-not $staged) {12 git commit --allow-empty -m 'Deploy: keep only backend (empty commit if no removals)'13} else {14 git commit -m 'Deploy: keep only backend'15}16Write-Output "-- commit done --"