From 8c479d377e1e4facbbeaa9358a7805a6c57bf8d2 Mon Sep 17 00:00:00 2001 From: Capucine Gest Date: Mon, 1 Jun 2026 23:25:49 +0200 Subject: [PATCH] auto: sync 2026-06-01 23:25 --- autopush.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 autopush.ps1 diff --git a/autopush.ps1 b/autopush.ps1 new file mode 100644 index 0000000..75cbb99 --- /dev/null +++ b/autopush.ps1 @@ -0,0 +1,16 @@ +$repo = "C:\Users\capug\Documents\Private\Investissements\Trading\Code\forex-dashboard" + +while ($true) { + Set-Location $repo + $status = git status --porcelain + if ($status) { + Write-Host "$(Get-Date -Format 'HH:mm:ss') - Modifications detectees, commit + push..." + git add -A + git commit -m "auto: sync $(Get-Date -Format 'yyyy-MM-dd HH:mm')" + git push origin main + Write-Host "$(Get-Date -Format 'HH:mm:ss') - Push OK" + } else { + Write-Host "$(Get-Date -Format 'HH:mm:ss') - Rien a pusher" + } + Start-Sleep -Seconds 300 +}