cron-git
crontab git task by nodejs
preparation
- make sure Git was installed
- at __dir exec the following command
git config user.name "YOUR USER NAME"git config user.email "YOUR EMAIL"
- execute ./ini.sh
usage
var o = dir: __dirname debug: false allowNotice: true
params_pull
var params = remote: repo: 'origin' branch: 'master' add: path: './*' commit: message: "Committed by cron-git from "+ hostname pull_params: {}
params_push
var params = add: path: './*' commit: message: "Committed by cron-git from "+ hostname push_params: '-u' 'origin' 'master'
License
Apache-2.0