This is a plugin for Kirby that Commits and Pushes Changes made via the Panel to your Git Repository.
Just keep using the Panel as you are used to and watch the commits appear in your git repository!
Create a new git repository where you push your content to, name it your-project_content
.
Init the content repo and push it
Remove the content/
folder from your current git repository
git rm --cached -r content
git add -A
git commit -m "Move Content Folder to separate repository"
Add the content/
folder to new git repository
cd content
git init
git remote add origin https://github.com/your-project/your-project_content.git
git add -A
git commit -m "Initial Content Commit"
git push origin master
Go into your site/plugins/
folder and
git submodule add --name git-commit-and-push-content https://github.com/blankogmbh/kirby-git-commit-and-push-content.git site/plugins/git-commit-and-push-content
cd site/plugins/
git submodule update --init --recursive
Or: Put all the files into your site/plugins/git-commit-and-push-content/
folder. If the git-commit-and-push-content/
plugin folder doesn't exist then create it.
You can use the following Options - make use of kirbys Multi-environment setup.
(In case you need to use multiple git users on your environment - Multiple SSH Keys settings for different github account)
Type: String
Default value: 'master'
branch name to be checked out
Type: Boolean
Default value: true
Pull remote changes first?
Type: Boolean
Default value: true
Commit your changes?
Type: Boolean
Default value: true
Push your changes to remote?
Type: String
Default value: ''
Sets the location where git can be found
See Git.php void Git::set_bin ( string $path )
Type: Boolean
Default value: false
See Git.php void Git::windows_mode ( void )
Pascal 'Pascalmh' Küsgen http://pascalmh.de