Repo erstellen!

This commit is contained in:
2026-03-01 06:41:26 +01:00
commit 6940d64a01
2 changed files with 246 additions and 0 deletions

28
push-updates.ps1 Normal file
View File

@@ -0,0 +1,28 @@
param(
[string]$RepoPath = "C:\Users\Kevkus\Desktop\Obsidian\Allgemeine D&D Notizen\DND Zeug"
)
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
# Datum/Time für Commit-Message (lokal, ISO-ish)
$stamp = Get-Date -Format "yyyy-MM-dd HH:mm"
Set-Location $RepoPath
# Add alles
git add -A | Out-Null
# Prüfen ob überhaupt Änderungen da sind
$changes = git status --porcelain
if ([string]::IsNullOrWhiteSpace($changes)) {
Write-Host "Keine Änderungen nichts zu committen/pushen."
exit 0
}
# Commit + Push
$msg = "Automatischer Push von $stamp"
git commit -m $msg | Out-Null
git push | Out-Null
Write-Host "OK: $msg"