plugin-icon

Content Version for Git

作者:maksonlee·
GitHub-backed version history for WordPress posts, pages, and media.
版本
0.1.7
最后更新
Jun 20, 2026
Content Version for Git

Content Version for Git stores editable WordPress content snapshots in a configured GitHub repository. It versions posts, pages, terms, and optionally media metadata and original media files. Editors can preview, diff, and restore previous versions from the WordPress admin.

The plugin writes and reads Git objects through the GitHub API. It does not keep a local Git repository and does not call the git CLI.

Features include:

  • Automatic Git versions for normal post and page saves.
  • Side-by-side content diffs and field diffs.
  • Full restore and content-only restore modes.
  • Deleted Resources view for posts, pages, and tracked media.
  • Restore deleted posts/pages as new drafts and deleted media as new attachments.
  • Optional media metadata and file tracking.
  • Manual import of existing posts, pages, and media.
  • Version store dashboard with branch, latest commit, tracked file count, and GitHub version store status.
  • Direct GitHub API commits without a local Git worktree.

External Services

This plugin connects to GitHub when the “Enable GitHub version store” setting is enabled and a repository URL, branch, and personal access token are configured.

When enabled, the plugin writes Git commits directly to the configured GitHub repository using the GitHub API. Commit data may include post/page content, metadata, term references, media metadata, and media files if media tracking is enabled.

Create the GitHub repository before configuring the plugin. The repository may be empty, and the plugin can initialize an empty repository on the first write, but it does not create GitHub repositories. Use a dedicated repository or a dedicated branch for this plugin’s version store. Normal version writes preserve unrelated files on the branch, but Reset GitHub Version Store rewrites the configured branch history.

For fine-grained personal access tokens, select only the version-store repository and grant Contents read and write access. Organization repositories may require organization approval for the token before the plugin can use it.

The GitHub version store is disabled by default. No data is sent to GitHub unless a site administrator enables and configures it. Without the GitHub version store, this plugin does not keep durable local Git versions. GitHub’s terms and privacy policy apply:

  • https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
  • https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement
免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 7.0
这个插件是可用的下载,适用于您的站点。