Here comes a WordPress plugin which provides automatic git version control and deployment for your plugins and themes integrated into wp-admin.
Gitium requires git command line tool with a minimum version of
1.7 installed on the server and the
proc_open PHP function enabled.
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 simply using git push.See how we're using it
Gitium enables continuous deployment for WordPress, integrating with tools such as Github, Bitbucket or Travis-CI. Plugin or theme updates, installs, and removals are automatically versioned. Ninja code edits from the WordPress editor are also tracked by the version control system.I have an idea
Install it, insert your git URL, and that's it!
This means that, as a site owner, you don't need to learn anything new. Just use WordPress normally and Gitium will automatically know when you add or remove a plugin or theme, or when you update or change one file from WordPress.
You can always find out who changed what. Gitium will set the WordPress logged in user as the author of the commits.
If you have trouble with your site or, for some reason, the code is broken or missing, you don't have to worry about it, because you can recover your code from git.