mirror of
https://gitlab.com/hagezi/mirror.git
synced 2026-01-12 10:56:10 +08:00
16 lines
196 B
Bash
Executable File
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 ""
|