1. Create a blank repository in gitea3 2. Clone down the empty repo to site git clone https://gitea3.ecloud.e3labs.net/kmin/debian ### git config --global user.email "admin@goodg.org" git config --global user.name "admin" ### git remote set-url origin https://myPAT@git.newcovbap.church/admin/mcheyne.wiki.git git remote set-url origin https://myPAT@git.newcovbap.church/admin/discipleship.wiki.git git remote set-url origin https://myPAT@git.newcovbap.church/admin/systematic_theology.wiki.git #### git add base.txt git commit -a -m "base.txt" git push or git pull # above works... ####################### Step 1: Create PAT on gitea ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- Step 2: Clone down repository(ies) ----------------------------------------------------------------------------------------------------- git clone https://git.newcovbap.church/admin/mcheyne.wiki.git git clone https://git.newcovbap.church/admin/discipleship.wiki.git git clone https://git.newcovbap.church/admin/systematic_theology.wiki.git ----------------------------------------------------------------------------------------------------- Step 3: Setup configs for each repository ----------------------------------------------------------------------------------------------------- git config --global user.email "admin@goodg.org" git config --global user.name "admin" git remote set-url origin https://myPAT@git.newcovbap.church/admin/mcheyne.wiki.git git remote set-url origin https://myPAT@git.newcovbap.church/admin/discipleship.wiki.git git remote set-url origin https://myPAT@git.newcovbap.church/admin/systematic_theology.wiki.git ----------------------------------------------------------------------------------------------------- Step 4: Create script ----------------------------------------------------------------------------------------------------- nano gitpulls.sh cd /mnt/mine/data/git/s071/mcheyne.wiki git pull cd /mnt/mine/data/git/s071/systematic_theology.wiki git pull cd /mnt/mine/data/git/s071/discipleship.wiki git pull ----------------------------------------------------------------------------------------------------- Step 5: Make Executable Script ----------------------------------------------------------------------------------------------------- [user@ne001:/mnt/mine/data/git]$ ls -la total 16 drwxr-xr-x 3 user users 4096 Dec 30 07:04 . drwxrwxrwx 16 root root 4096 Dec 30 05:53 .. -rw-r--r-- 1 user users 167 Dec 30 07:04 gitpulls.sh drwxr-xr-x 5 user users 4096 Dec 30 06:16 s071 [user@ne001:/mnt/mine/data/git]$ chmod +x gitpulls.sh [user@ne001:/mnt/mine/data/git]$ ls -la total 16 drwxr-xr-x 3 user users 4096 Dec 30 07:04 . drwxrwxrwx 16 root root 4096 Dec 30 05:53 .. -rwxr-xr-x 1 user users 167 Dec 30 07:04 gitpulls.sh drwxr-xr-x 5 user users 4096 Dec 30 06:16 s071 [user@ne001:/mnt/mine/data/git]$ ----------------------------------------------------------------------------------------------------- Step 6: Setup Chron Job ----------------------------------------------------------------------------------------------------- services.cron = { enable = true; systemCronJobs = [ # Minute Hour Day Month Weekday User Command "*/5 * * * * root /mnt/mine/data/git/gitpulls.sh" #>> /tmp/cron.log" # The example above runs the command every 5 minutes as the root user. ]; }; ################# Creating a new repository on the command line touch README.md git init git checkout -b main git add README.md git commit -m "first commit" git remote add origin https://gitea3.ecloud.e3labs.net/kmin/debian12.git git push -u origin main ################################################# Pushing an existing repository from the command line git remote add origin https://gitea3.ecloud.e3labs.net/kmin/debian12.git git push -u origin main ###################################### git init git remote add origin https://gitea3.ecloud.e3labs.net/kmin/debian branch -M main ##################### # alpine appname="git" apk add $appname diff -u 1.txt 2.txt | grep -E '^\+' | sed -E 's/^\+//' > pkg_$appname.txt