Gitium is a WordPress plugin which provides automatic git version control and deployment for your plugins and themes integrated into wp-admin.
Gitium 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.
Gitium is designed with sane 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
.
The plugin requires the git
command line tool with a minimum version of 1.7 installed on the
server and the proc_open
PHP function enabled.
Gitium is the latest element discovered at PressLabs.
- Upload
gitium.zip
to the/wp-content/plugins/
directory; - Extract the
gitium.zip
archive into the/wp-content/plugins/
directory; - Activate the plugin through the 'Plugins' menu in 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 Code
menu.
IMPORTANT: Gitium does its best not to version your WordPress core, neither
your /wp-content/uploads
folder.
Right now this plugin is considered alpha quality and should be used in production environments only by adventurous kinds.
The behavior in case of conflicts is to overwrite the changes on the origin
repository with the local changes (ie. local modifications take precedence over
remote ones).
You can ping the webhook url after a push to automatically deploy the new code.
The webhook url can be found under Code
menu. This url also plays well with Github
or Bitbucket webhooks.
Gitium does not support multisite setups at the moment.
Submodules are currently not supported.