Hong-Phuc Bui
2026-10-16 02147e7d251077ddecc6c5d36bf0a52f5a460d0e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sync_git() {
    SRC=$1
    DEST=$2
    mkdir -p $DEST
    rsync -aHAXxv --numeric-ids --delete --progress --exclude='.git' \
        --exclude='.gitignore' \
        --exclude='*/target' \
        --exclude='abgabe.sh' \
        --exclude='.venv' \
        --exclude='site' \
        --exclude="'${abgabe_zip}.zip'" \
        $SRC $DEST
 
    git -C $DEST add .
    git -C $DEST commit -a -m "Commit Datum: $(date --iso-8601=seconds)"
    git -C $DEST push origin main
 
}
 
sync_git ./ ../codeberg.page/kurswinkel