diff --git a/rootfs/opt/git-sync/git-sync.sh b/rootfs/opt/git-sync/git-sync.sh index fa925c9..858cbd7 100644 --- a/rootfs/opt/git-sync/git-sync.sh +++ b/rootfs/opt/git-sync/git-sync.sh @@ -11,7 +11,10 @@ fi # Aktualisieren cd "$REPO" || exit 1 +git stash push -m "auto-sync" git pull --rebase +git stash pop + # Dateien verteilen (rootfs → /) sudo rsync -a rootfs/ "$TARGET"