简体   繁体   中英

Automatic commits to Github

I have a project folder that is updated multiple times per day from a remote process with new xml log files.

Is it possible to schedule a regular automatic commit (cron?) from the local project to Github and allow remote users access to the github repo to pull the new files?

There are plenty of articles on making a task to be run with cron which you already suggested in your question. Here's just one .

What you want could be achieved with these git commands in a script

find . -name "*.log" | xargs git add
git commit -m “<whatever you want, maybe $(date)?>”
git push origin <branch name>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM