Title: Version Control Your Content
Author: Haris Amjed
Published: <strong>6 aprīlis, 2025</strong>
Last modified: 6 aprīlis, 2025

---

Meklēt spraudņus

Šī spraudnis **nav atjaunināts vairāk kā divus gadus**. Varbūt, tas vairs netiek
uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress
versijām.

![](https://ps.w.org/version-control-your-content/assets/icon-256x256.png?rev=3267365)

# Version Control Your Content

 Autors [Haris Amjed](https://profiles.wordpress.org/harisamjed/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/version-control-your-content.1.0.0.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/version-control-your-content/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/version-control-your-content/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/version-control-your-content/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/version-control-your-content/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/version-control-your-content/)

## Apraksts

The Version Control Your Content plugin provides an alternative to the native WP
[Revisions](https://wordpress.org/documentation/article/revisions/) feature using
Git services.

#### Requirements

 * A GitHub account. If you don’t have one, you can create one [here](https://github.com/join).
 * A GitHub private repository. If you don’t have one, you can create one [here](https://github.com/new).
 * (Optional but highly recommended) A GitHub fine-grained personal access token.
   If you don’t have one, you can create one [here](https://github.com/settings/tokens/new).

This plugin provides an option for version control in the following places for now:

 1. Block Editor (Gutenberg)
 2. Classic Editor
 3. Additional CSS in the Customizer
 4. Default Settings pages in WP Admin

On all supported pages, you will see a “Version Control” box, and you can activate
or deactivate it for that page. It will also show you the real-time GitHub API usage
in the top admin bar.

This solution will put minimal load on your server because there will be no database
entries, no complex SQL operations, and only simple JavaScript-based API calls to
external Git services.

#### How it works behind the scenes?

 1. When you submit any HTML form, such as saving a post, it captures the form data
    via JavaScript before sending it to the server backend.
 2. It sanitizes the data and converts it to JSON format (if needed).
 3. It sends that JSON or HTML data to your Git repository via a commit.
 4. In this way, all your changes will be new commits in your Git repo in related JSON
    or HTML files.
 5. In the commits box, a list of all commits will be shown. It will also provide an
    option to view the changes or revert to that version.

#### Planned Upcoming Features

Currently, I have developed it for three views as described above, and the following
features will be added in the future:

 * Integration with page builders like Elementor, Divi, Beaver Builder, WPBakery,
   etc.
 * Integration with WooCommerce
 * Integration with BuddyPress
 * Integration with bbPress
 * Integration with WPML, etc.

## Ekrānuzņēmumi

[⌊Version Control in Block Editor⌉⌊Version Control in Block Editor⌉[

Version Control in Block Editor

[⌊Version Control in Classic Editor⌉⌊Version Control in Classic Editor⌉[

Version Control in Classic Editor

[⌊Version Control in Customizer's Additional CSS⌉⌊Version Control in Customizer's
Additional CSS⌉[

Version Control in Customizer’s Additional CSS

[⌊Version Control in Customizer's Settings pages⌉⌊Version Control in Customizer's
Settings pages⌉[

Version Control in Customizer’s Settings pages

[⌊Add a new connection page⌉⌊Add a new connection page⌉[

Add a new connection page

[⌊Add new Connection form⌉⌊Add new Connection form⌉[

Add new Connection form

[⌊Connections display page⌉⌊Connections display page⌉[

Connections display page

[⌊GitHub API usage quota⌉⌊GitHub API usage quota⌉[

GitHub API usage quota

[⌊Add GitHub fine-grained personal access token⌉⌊Add GitHub fine-grained personal
access token⌉[

Add GitHub fine-grained personal access token

[⌊Commit box as popup⌉⌊Commit box as popup⌉[

Commit box as popup

## Uzstādīšana

 1. Upload the plugin ZIP file and search for it on the “Add New Plugin” page.
 2. Activate the plugin through the **Plugins** screen (**Plugins > Installed Plugins**).
 3. Go to the “Version Control” page in WP Admin.
 4. Add a new connection and activate it.
 5. “Version Control” boxes will appear in the post editor, Additional CSS, and Settings
    pages.
 6. A new version will be created every time you press the save/submit button.

## BUJ

### What is version control?

Version control is a system that allows you to track changes to your content over
time. It enables you to revert to previous versions of your content and compare 
changes between different versions.

### Is it free to use?

Yes, it is free to use. GitHub has been offering free private repositories since
Jan 2019, but with some limitations. I think the current offering will work for 
most small to medium websites. You can upgrade to an Enterprise plan on GitHub if
you max out the free plan.

### What is its use in settings pages?

As per my experience, website owners change site titles, taglines, and other details
every now and then for SEO reasons or otherwise. Currently, it is a manual process
to keep track of all these changes, perhaps in an external spreadsheet or document.
With this plugin, all your history will be maintained automatically with date and
time.

### How is this plugin different from activity monitor plugins?

This plugin is different from many available activity logging or monitoring plugins
in that it won’t add anything to your database, so it should not create any performance
issues. Instead, it will just send logs to your secure private Git repository.

### Is this plugin a replacement for backup plugins/systems?

No, it is not intended to replace any backup plugin or backup system. It just provides
a history of all the changes you made to your content.

### Are there any limitations of GitHub API?

GitHub API has a limit of 5000 requests per hour. The maximum repository size limit
is 1GB. I think that should be enough for most websites.

### What about other Git services like Bitbucket or GitLab?

This plugin is currently using the GitHub API. However, it is designed to be extended
to other Git services like Bitbucket or GitLab in the future.

### Why is a personal access token better than the VCYC OAuth App?

A personal access token is better because you have full control over what you want
to share from your account. You can give access to only a single repository to test
this version control plugin.

### My repository is not showing up in the list?

This plugin works for private repositories only since I see no reason to share your
content with the public.

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Version Control Your Content” ir atvērtā pirmkoda programmatūra. Šo spraudni ir
veidojuši šādi cilvēki.

Līdzdalībnieki

 *   [ Haris Amjed ](https://profiles.wordpress.org/harisamjed/)

[Tulkot “Version Control Your Content&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/version-control-your-content)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/version-control-your-content/),
apmeklējiet[ SVN krātuvi ](https://plugins.svn.wordpress.org/version-control-your-content/)
vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/version-control-your-content/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/version-control-your-content/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 1.0.0

 * Initial release.

## Meta

 *  Versija **1.0.0**
 *  Pēdējo reizi atjaunots: **pirms 1 gada**
 *  Aktīvās instalācijas: **Mazāk par 10**
 *  WordPress versija ** 5.6 vai jaunāka **
 *  Pārbaudīts līdz: **6.7.9**
 *  PHP versija ** 7.2 vai jaunāka **
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/version-control-your-content/)
 * Birkas:
 * [git](https://lv.wordpress.org/plugins/tags/git/)[Github](https://lv.wordpress.org/plugins/tags/github/)
   [version control](https://lv.wordpress.org/plugins/tags/version-control/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/version-control-your-content/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

[Your review](https://wordpress.org/support/plugin/version-control-your-content/reviews/#new-post)

[Skatīt visasatsauksmes](https://wordpress.org/support/plugin/version-control-your-content/reviews/)

## Līdzdalībnieki

 *   [ Haris Amjed ](https://profiles.wordpress.org/harisamjed/)

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/version-control-your-content/)

## Ziedojiet

Vai vēlaties atbalstīt šī spraudņa pilnveidošanu?

 [ Ziedojiet šim spraudnim ](https://buymeacoffee.com/harisamjed/)