The directory contains scripts to facilitate the development and maintenance of the Knowledge Commons site.
Pulls changes from remote subtrees.
Usage: ./subtree-pull.php [<options>]
--local-branch=<branch>
Pull into named branch. Default branch is legacy
.
--remote-branch=<branch>
Pull from named branch. Default is the default (HEAD) branch for the remote.
--subtree=<subtree prexfix>
Pull for named subtree. Eg. core-plugins/humanities-commons
. Default is to pull for all subtrees.
Pushes changes on current branch to remote subtrees.
Usage: ./subtree-push.php [<options>]
--remote-branch=<branch>
Pushes to named branch. Default is knowledge-commons-wordpress
.
--subtree=<subtree prefix>
Pushes changes only for named subtree. Default pushes changes for all subtrees.
Checks status of remote subtrees, showing default branch, whether there are differences with current local branch, and last commit date for remote.
Usage: ./subtree-status.php