I have a local Git repository called \'skeleton\' that I use for storing project skeletons. It has a few branches, for different kinds of projects:
casey@aga
For cloning a specific branch you can do :
git clone --branch yourBranchName git@yourRepository.git
For the newbies like me, just run the code below
git clone https://gitlab.com/repo/repo.git --branch <name of branch> --single-branch
you can use this command to git single branch and rename the folder if you want to keep branched stand alone
git clone -b [branch-name] --single-branch [url] [folder_name]
example
git clone -b mybranch --single-branch git://github/repository.git project_mybranch