Automatic git version control and deployment for your plugins and themes integrated into wp-admin.
About the makers
This plugin was developed by the crafty people at Presslabs—the Smart Managed WordPress Hosting Platform. Here we bring high-performance hosting and business intelligence for WordPress sites. In our spare time, we contribute to the global open-source community with our code.
We’ve built Gitium back in 2013 to provide our clients a more simple and error-free method to integrate a new git version control into their code management flow.
What is Gitium?
This plugin enables continuous deployment for WordPress, integrating with tools such as Github, Bitbucket or Travis-CI. Theme or plugin updates, installs and removals are all automatically versioned. Ninja code edits from the WordPress editor are also tracked by the version control system.
Why is Gitium?
Gitium is designed with responsible development environments in mind, allowing staging and production to follow different branches of the same repository. You can also deploy code by simply using git push.
Gitium requires git command line tool with a minimum version of 1.7 installed on the server and the proc_open PHP function enabled.
-preserves the WordPress behavior
-accountability for code changes
-safe code storage—gets all code edits in Git
For more details about Gitium, head here: http://docs.presslabs.com/gitium/usage/
Receiving is nicer when giving
We’ve built this to make our lives easier and we’re happy to do that for other developers, too. We’d really appreciate it if you could contribute with code, tests, documentation or just share your experience with Gitium.
Development of Gitium happens at http://github.com/PressLabs/gitium
Issues are tracked at http://github.com/PressLabs/gitium/issues
This WordPress plugin can be found at https://wordpress.org/plugins/gitium/
- Extract the
gitium.ziparchive into the
- WordPress の「プラグイン」メニューからプラグインを有効化してください
Alternatively, go into your WordPress dashboard and click on Plugins -> Add Plugin and search for
Gitium. Then, click on Install and, after that, on Activate Now.
Activate the plugin and follow the on-screen instructions under the
IMPORTANT: Gitium does its best not to version your WordPress core, neither your
Could not connect to remote repository?
If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.
Example: chown -R www-data:www-data .git
Is this plugin considered stable?
Yes, we consider the plugin stable after extensive usage in production environments at Presslabs, with hundreds of users and powering sites with hundreds of millions of pageviews per month.
What will happen in case of conflicts?
The behavior in case of conflicts is to overwrite the changes on the
originrepository with the local changes (ie. local modifications take precedence over remote ones).
How to deploy automatically after a push?
You can ping the webhook url after a push to automatically deploy the new code. The webhook url can be found under
Settingssection. This url also plays well with Github or Bitbucket webhooks.
Does it works on multi site setups?
Gitium does not support multisite setups at the moment.
How does gitium handle submodules?
Submodules are currently not supported.
- Various bug fixes
- PHP 8 compat. fixes
- Fixed wrong redirection for multisite installations during initial setup
- Full PHP 7+ compatibility
- Hotfix – Fixed the blank pages being displayed instead of success of failure messages;
- Hotfix – Fixed the push process when other remote branches had changes;
- Hotfix – Fixed the missing ssh / key handling with fatal errors during activation;
- Added – More success messages in certain cases.
- Hotfix – Fix race condition on Code Editor Save
- Fixed WP 4.9 Compatibility
- Bumped plugin version
- Hotfixed an error that prevented gitium to error_log properly.
- Bumped wordpress tested version
- PHP7 compat and wp-cli
- Fix some indents
- Add some more tests
- Fix the submenu configure logic
- Test remote url from git wrapper
- Remove the phpmd package from test environment
- Set WP_DEBUG to false on tests
- Abort the cherry-pick – changes are already there
- Fix the race condition
- Add acquire and release logs for gitium lock
- Add explanations to merge with accept mine logic
- Delete all transients and options on uninstall hook
- Add transients to is_versions and get_remote_tracking_branch functions
- Update the composer
- Check requirements before show the admin menu
- Put the logs off by default(on test env)
- Fix redirect issue and display errors
- Create wordpress docker env command
- PHP Warning: unlink #114
- Fix delete plugin/theme bug on 4.6
- Update the readme file
- Fix merge with accept mine behind commits bug
- Add support for multisite
- Fix PHP error on merge & push
- Change the default lockfile location
- Fix a PHP Warning
- Update the logic of merge and push
- Add lock mechanism for fetch and merge
- Fix repo stuck on merge_local branch
- Tested up to 4.5.3
- Add documentation for ‘Could not connect to remote repository?’
- Fix the update theme from Dashboard commit message & the install plugin commit message
- Fix install/delete plugin/theme commit message
- Add a test and rewrite the tests
- Tested up to 4.5.2
- Fix bug deleting plugins/themes causes wrong commit message
- Fix bug wrong commit message
- Fix bug updated function to stop maintenance mode hang
- Fix bug undefined variable ‘new_versions’
- Add ‘Merge changes’ button for gitium webhook
- Add gitium documentation for docker
- Add more tests
- Fix compatibility issues with wp-cli
- Fix bug plugin deletion from plugins page did not trigger commit
- Fix bug missing changes on similarly named plugins
- Add requirements notices
- Add requirements help section
- Fix paths with spaces bug
- Add a Disconnect from repo button
- Fix POST var
- Fix travis tests
- Add Contextual Help to Configuration page
- Make the icon path relative
- The key file is deleted properly
- Update serbian translation
- Make the resource type more specific
- Fix Menu Bubble
- Remove useless param for get_transient
- Add Spanish Translation
- Fix git version notice
- Delete .vimrc
- Update .gitignore
- Fix syntax error
- Add better git version check
- Fix add_query_arg vulnerability
- Update Serbian Translation (by Ogi Djuraskovic)
- Fix Menu Bubble
Last 20 Commitsmenu page
- Add WordPress Contextual Help menu
Public Keyfields to
- Add menu icon
.gitignorefile can be edited
- Fix commit message on theme/plugin update event
- Add the action
- Moved to
- Add new tests
- Added code climate coverage reporting
- Fix plugin activation issues
- Fix issues with ssh repositories
- Fix maintemance mode when webhook fails
- First alpha release