how to make clone of a local branch in github code example
Example 1: specific branch clone git
git clone -b <branch> <remote_repo>
git clone -b my-branch [email protected]:user/myproject.git
Example 2: how to git clone a branch github
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git