Beschreibung
PushPull stores selected WordPress content in a Git repository using a canonical JSON representation instead of raw database dumps.
Beta notice
This is a beta plugin. It is still under active development, has limited functionality, and currently supports only a narrow subset of the intended PushPull feature set.
The current release supports these managed content domains:
- GenerateBlocks Global Styles (
gblocks_styles) - GenerateBlocks Conditions (
gblocks_condition) - WordPress Block Patterns (
wp_block) - WordPress Pages (
page) - WordPress Custom CSS (
custom_css) - WordPress Attachments (
attachment, explicit opt-in only)
PushPull keeps a local Git-like repository inside WordPress database tables and supports the following workflow directly from WordPress admin:
- Test the remote GitHub connection
- Commit live managed content into the local repository
- Initialize an empty remote repository
- Fetch remote commits into a local tracking ref
- Diff live, local, and remote states
- Pull remote changes through fetch + merge
- Merge remote changes into the local branch
- Resolve conflicts when needed
- Apply repository content back into WordPress
- Push local commits to GitHub
The plugin also includes:
- An audit log screen
- Local repository reset tooling
- Remote branch reset tooling that creates one commit removing all tracked files from the branch
- Global and per-domain managed-content views in the admin UI
Current scope
This is an early, focused release. At the moment, PushPull is intentionally limited to:
- GitHub as the implemented remote provider
- Six managed content domains:
generateblocks/global-styles/
generateblocks/conditions/
wordpress/block-patterns/
wordpress/pages/
wordpress/custom-css/
wordpress/attachments/ - Canonical JSON storage with one file per managed item for manifest-backed sets, plus directory-backed storage for attachments using
attachment.jsonand the binary file - Explicit opt-in attachment sync through a media-library checkbox
It does not yet manage general posts, menus, forms, wp_options, or arbitrary plugin data.
How PushPull represents content
PushPull does not use WordPress post IDs as repository identity.
For the currently supported managed sets it stores:
- One canonical JSON file per managed item
- One separate
manifest.jsonfile for manifest-backed sets that preserves logical ordering - One directory per attachment for the attachments set, containing
attachment.jsonand the binary file - Stable logical keys instead of environment-specific database IDs
- Recursive placeholder normalization for current-site absolute URLs in post-type-backed content
Configuration
PushPull currently supports GitHub repositories through the GitHub Git Database REST API.
Create a fine-grained personal access token or installation token with access to the target repository. The token should allow:
- Repository metadata read access
- Repository contents read and write access
In PushPull > Settings:
- Select
GitHubas the provider - Enter the repository owner and repository name
- Enter the target branch
- Enter the API token
- Enable one or more managed content domains in the managed content settings
- Click
Test connection - Save the settings
Workflow
The normal workflow is:
Committo snapshot the current live managed-set content into the local repositoryFetchto import the current remote branch intorefs/remotes/origin/<branch>- Inspect the live/local and local/remote diff views if needed
Pullfor the common fetch + merge flow, orMergemanually after fetch when you want review firstApply repo to WordPresswhen you want the local branch state written back into WordPressPushwhen you want local commits published to GitHub
If both local and remote changed, PushPull can persist conflicts, let you resolve them in the admin UI, and then finalize a merge commit.
Empty repositories
If the configured GitHub repository exists but has no commits yet, Test connection will report that the repository is reachable but empty.
In that case, click Initialize remote repository. PushPull will:
- create the first commit on the configured branch
- fetch that initial commit into the local remote-tracking ref
- make the repository ready for normal commit, fetch, merge, apply, and push workflows
You do not need to create the first commit manually on GitHub before using PushPull.
External services
PushPull connects to the GitHub API for the repository you configure in the plugin settings.
The plugin uses GitHub’s REST API to:
- Read repository metadata and the default branch
- Read and update branch refs
- Read and create Git blobs, trees, and commits
- Test repository access before sync operations
PushPull sends the following information to GitHub over HTTPS:
- The repository owner, repository name, branch, and API base URL
- Your configured API token in the
Authorizationheader - Canonical JSON representations of the managed content you choose to commit and push
- Commit metadata such as commit messages and, if configured, author name and email
In the current release, the managed content sent to GitHub is limited to the enabled supported domains: GenerateBlocks Global Styles, GenerateBlocks Conditions, WordPress Block Patterns, WordPress Pages, WordPress Custom CSS, and explicitly opted-in WordPress Attachments.
PushPull does not send your whole WordPress database to GitHub. It only sends the managed content represented by the enabled adapters.
GitHub terms of service: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
GitHub privacy statement: https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement
Installation
Uploading in WordPress Dashboard
- Download the plugin ZIP.
- In WordPress, go to Plugins > Add New Plugin.
- Click Upload Plugin.
- Select the ZIP file.
- Install and activate the plugin.
Installing from source
- Clone this repository into
wp-content/plugins/pushpull. - Run
composer install. - Activate PushPull in WordPress.
Rezensionen
Für dieses Plugin gibt es keine Rezensionen.
Mitwirkende und Entwickler
„PushPull“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
MitwirkendeÜbersetze „PushPull“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN-Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
0.0.9
- Added asynchronous branch actions in the
All Managed Setsoverview soFetch,Pull, andPushno longer rely on a blocking full-page POST flow. - Added modal-based operation progress UI, with indeterminate progress for fetch and determinate progress for push.
- Added a first-commit guard so PushPull now requires
Fetchbefore creating the first local commit when the remote branch already has history. - Fixed push planning so unchanged remote objects are reused in the normal linear-history case instead of being counted and uploaded again.
0.0.8
- Added new managed content domains for WordPress custom CSS and WordPress pages.
- Added a dedicated WordPress attachments domain with directory-backed repository storage using
attachment.jsonplus the binary file. - Added explicit opt-in attachment sync through a
Sync with PushPullcheckbox in the media library, so only marked attachments are managed. - Added
wp_pattern_sync_statusto the owned WordPress block pattern meta allowlist. - Refactored the sync engine so managed sets can supply authoritative repository files directly, allowing non-manifest adapter families like attachments.
0.0.7
- Fixed WordPress block pattern apply/export escaping so
\\u002dsequences survive correctly in bothpost_contentand pattern meta. - Removed creation and modification timestamps from generic post-type canonical items to avoid false diffs across environments.
- Changed the
All Managed Setsoverview so each managed set starts collapsed by default.
0.0.6
- Fixed branch commits so committing one managed set no longer removes previously committed managed-set content from the same branch.
- Reorganized the Managed Content admin UI so branch actions (
Pull,Fetch,Push) appear only in the all-managed-sets overview, while per-managed-set views keep only managed-set actions. - Moved remote branch reset into Settings alongside the local repository reset controls.
- Added transparent current-site URL placeholder normalization for post-type-backed managed content so environment-local absolute URLs can round-trip across sites.
- Split plugin runtime assets from WordPress.org listing assets, with packaging and SVN deploy updated to use the correct directories.
0.0.5
- Added GitHub-backed remote repository support using GitHub’s Git Database API.
- Added end-to-end commit, fetch, pull, merge, conflict resolution, apply, and push workflows in WordPress admin.
- Added local and remote repository reset actions, audit logging, and operation locking.
- Added support for multiple managed content domains, including GenerateBlocks conditions and WordPress block patterns.
- Added release automation for packaging, Plugin Check, WordPress.org SVN deploy, and public GitHub sync.
0.0.1
Initial public release focused on GitHub-backed synchronization of GenerateBlocks Global Styles.