Accessing Git on Your Managed WordPress Account
You can use the version-control software Git with your Managed WordPress account. Unlike most uses of Git (which controls software subversions), Managed WordPress users find Git most useful for creating backups of their Website's content.
Git will not version your Managed WordPress database, nor any of the information in it like your posts.
You can also use Git to develop your Managed WordPress Website locally, but doing so is more advanced and requires additional software like Beanstalk.
To use Git, you need a repository like GitHub or Bitbucket.
To Access Git on Your Managed WordPress Account
- Access your Managed WordPress account via SSH (more info).
- Run the Git application using the following command:
git
From this state, you can issue commands through Git as documented on their Website here.
Additional Information
To properly use Git on your Managed WordPress account, you need to create a .gitignore
file (more info) stored in your /html
directory. The file should contain the following lines of code:
wp-content/mu-plugins/gd-system-plugin.php
wp-content/mu-plugins/
wp-includes/
wp-*.php
!wp-config.php
index.php
gd-config.php
If you do not create this file, you will experience versioning issues caused by updates to the WordPress core.
Git Alternatives
If you want to use version control software without learning Git, we recommend a plugin called Revisr or Gitium. They offer most of Git's functionality through a GUI, which makes them simpler to use.