Files
hagezi_mirror/gitPush.sh
2026-01-01 11:48:25 +01:00

16 lines
196 B
Bash
Executable File

#!/bin/bash
comment=$1
if [ -z "$1" ]; then
comment="update"
fi
localgit=/media/nas/git/mirror
cd $localgit || exit
git pull
git add .
git commit -m "$comment"
git push origin main
echo ""