jonka 林 光章 6 kuukautta sitten
487
Lisää tämän kaltaisia
參考文章:
#!/bin/bash
cd ~/storage/shared/Documents/<your repository name>
git add .
git commit -m "Android Sync $(date)"
git pull
git push
*/15 * * * * ~/sync_mylogseq.sh`
#每15分鐘執行次。
termux-services
cronie
git clone git@github.com:{your-username}/{your-reponame}.git
#!/usr/bin/bash
source bin/source-ssh-agent
cd ~/storage/shared/Documents/<your repository name>
git add -A
git commit -m "sync from android"
git push
#!/usr/bin/bash
cd ~/storage/shared/Documents/<your repository name>
git pull
apt update
apt upgradabe
apt upgrade
pkg install openssh
pkg install git
#!/bin/sh
output=$(git pull --no-rebase)
if [ "$output" = "Already up to date." ]; then
# no ouput
exit 0
else
echo "${output}"
fi
git add -A
#!/bin/sh
git push origin main
$ ssh-keygen -t ed25519 -C "your_email@example.com"