branch from other branch

PHP
$ git checkout -b myFeature dev// Go first to the branch where you want to make a copy of
git checkout -b subbranch branch
$ git checkout -b myfeature dev

Source

Also in PHP: