forkpress clone
forkpress clone clones the ForkPress Git remote into a local editing checkout.
Use it after the preview server is running and you want to edit branch files through Git.
Usage
forkpress clone [remote] [dir] [--remote-name <name>]Arguments And Options
| Argument or option | Default | Description |
|---|---|---|
remote | http://wp.localhost:18080/site.git | Git remote URL exposed by the running ForkPress server. |
dir | site | Directory to create for the checkout. |
--remote-name <name> | origin | Name for the configured Git remote. |
What It Does
clone is a thin wrapper around:
git clone --origin <remote-name> <remote> <dir>The checkout contains the Git view of each ForkPress branch. In production COW sites, the editable WordPress tree is under wordpress/, and database.sql is a generated, read-only database snapshot for context.
Examples
Clone the default local remote:
forkpress clonecd siteClone into a named directory:
forkpress clone http://wp.localhost:18080/site.git client-siteUse another remote name:
forkpress clone --remote-name forkpress http://wp.localhost:18080/site.git siteNext Steps
Switch to a branch, edit files under wordpress/, then push with forkpress commit:
git switch marketingforkpress commit -m "Update marketing page"See Git Workflow for the full Git transport model.