4
4
4goya2021-09-06 08:33:50
git
4goya, 2021-09-06 08:33:50

How to make automatic synchronization via github?

Recommend a script/prog for simple directory synchronization via github. Timing and optional. Under Win and Linux.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
4
4goya, 2021-09-06
@4goya

Well, so far I've found it and tweaked it a bit:

#!/bin/bash          
# Github Syncro Script

git pull
git add --all
git commit -m "Auto-Git-Backup $(date "+%d.%m.%Y %H:%M "|sed -e ' s/\"/\\\"/g' )"
git push -u origin main
$SHELL

it remains to fasten the "Windows Task Scheduler" and cron in Linux
PY.SY. Brunch is yours. The last line after testing can be removed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question