Closed rapsli closed 1 year ago
There is no built-in way, but as mentioned in the docs, you could use the Git
class to do it yourself. I guess that something like this, using the page.update:after
hook, would do the trick:
use Oblik\KirbyGit\Git;
return [
'hooks' => [
'page.update:after' => function () {
$git = new Git();
$git->add();
$git->commit('my message');
$git->push();
}
]
];
Great. That did the job!
is there a way to autocommit changes and push them. That would be a great and easy backkup.