Post B6zbArlRmjrJ7hITOy by alina@girldick.gay
(DIR) More posts by alina@girldick.gay
(DIR) Post #B6zbArlRmjrJ7hITOy by alina@girldick.gay
0 likes, 0 repeats
ah yes, the weekly >git commit -m "forgot commits were a thing again oops">[main d91a635] forgot commits were a thing again oops> 35 files changed, 2236 insertions(+), 377 deletions(-)in my harem of solo side projects
(DIR) Post #B6zu5kloGBVR71k4OW by badsamurai@infosec.exchange
0 likes, 0 repeats
@alina oh i got u. This used to be (I got better!) my Friday 4pm scheduled task to auto commit+push all my non-prod branches.$me = whoami /upn; gci -r -dir -force -filter .git|%{$r=$_.Parent.FullName;$b=git -C $r branch --show-current 2>$null;if(!$b){Write-Host "skip (detached/no commits): $r" -ForegroundColor Yellow}elseif((git -C $r config user.email) -eq $me -and $b -notin 'main','master','prod','production'){Write-Host "commit+push: $r ($b)" -ForegroundColor Green;git -C $r add -A;git -C $r commit -qm 'Push to prod Friday';if($LASTEXITCODE -eq 0){git -C $r push}}else{Write-Host "skip: $r (branch: $b)" -ForegroundColor DarkGray}}