Revisr - Git for WordPress



Originally published at:

If you’re a developer who uses WordPress, chances are that you probably try to implement processes in your development workflow into WordPress. One such process is the use of version control. At the very basic level, version control essentially creates checkpoints in your code, allowing you to go back in time if something goes wrong. Arguably, the most popular version control software today is Git.

Implementing such a system in WordPress is not difficult. You can create a Git repository to manage your WordPress source code (which is possible only on the self hosted version). Additionally, you can create a database dump and add it to the repository. Commits through time would track changes in your files and database.

Although Git repositories can be managed through an array of powerful commands on the terminal or GUI clients which do the heavy lifting, we are going to talk about Revisr in this post. Revisr is a plugin which helps you manage your files and databases within the WordPress admin panel.

Note: I suggest you go through an earlier post on the basics of Git to get familiar with the Git related terms that I am going to use in this article.

Continue reading this article on SitePoint


You've got to be extremely careful keeping your .git folder (repo) on live hosting such as would be the case if you were using Revisr. Especially so in the case of using Revisr with remote repository settings stored which makes it trivial to access providing you with the username and password of your remote repo if you saved your remote with

There are a good number of real problems that can occur when you keep a .git folder in public space but if it's necessary to do so it's always good to in some way or another protect that directory which Revisr doesn't automatically do. Even something as simple as putting an .htaccess file (if using apache) in your .git folder with the content being 'deny from all' is a step in the right direction.

Thanks for this post, I'm definitely giving Revisr a go in hopes of making it all that much easier to develop WP sites.


Hi houghtelin,

That is an important point that you have noted and I have updated the post to mention the same. Thanks for pointing it out! smile

closed #4

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.