little script that commits and pushes whatever changed in a git repo. if nothing changed it exits quietly, so you can run it on a timer or from a hook without spam.
it stages everything, commits with the hostname and a utc timestamp, then pulls with rebase before pushing so two machines syncing at the same time dont collide. if the pull or push fails the commit stays local and it prints a warning, next run retries.
set SYNC_REPO_DIR to your repo path and SYNC_BRANCH if you dont use main, then just run sync-push.sh.