branch
This is the official documentation of the forestadmin/laravel-forestadmin
v2+ and forestadmin/symfony-forestadmin
PHP agents.
Here are a few extra details on how it works.
The forest branch
command has 3 uses, depending on how you use it:
list branches,
create branches,
delete branches.
Listing existing branches
To list your existing branches, run forest branch
:
The IS CURRENT
column indicates your currently selected branch: your Development Environment layouts will be displayed according to this branch's layout configuration.
Creating a new branch
To create a new branch, append the name of the branch you wish to create after forest branch
, like so:
There is no specific constraint on branch names, though kebab-case is generally used.
However, keep in mind that your branch name must be unique in the project.
Note that your project must be deployed remotely before you can start using branches:
Deleting a branch
To delete a branch, use the -d
option and a branch name to the forest branch
command:
You will be prompted for confirmation before deleting a branch. To skip that confirmation, use the --force
option.
Last updated