gon push
Push local module/theme changes back to individual GitHub repositories. Uses SHA256 checksums to detect changes since last push.
Usage
gon push # Show changed modules (status)gon push Cart # Push specific modulegon push Cart -m "feat: add coupons" # With commit messagegon push Cart --tag=v2.0 # Commit + taggon push --all -m "fix: validation" # Push all changedgon push --theme mysite # Push frontend themegon push --theme polygon --theme-type=admin # Push admin themegon push --all --dry-run # Preview without pushing
Options
| Option | Description |
|---|---|
-m, --message | Commit message |
-t, --tag | Create git tag after push |
--theme | Push specific theme instead of module |
--theme-type | Theme type: frontend (default) or admin |
--all | Push all changed modules and themes |
--dry-run | Show changes without pushing |
-f, --force | Skip confirmation prompt |
How it works
- Generates baseline checksums on first push
- Detects changed files (added, modified, deleted) via SHA256 diff
- Clones target repository to temp directory
- Syncs files while preserving
.git - Creates commit with your message
- Pushes to
origin/main - Creates tag if
--tagspecified - Updates local checksums