git clone bare code example
Example 1: git clone repo with name
git clone https://github.com/foo/repo_name.git new_directory_name
Example 2: clone branch git
git clone <repository_url>
git branch -a
git checkout <branch_name>
git clone https://github.com/foo/repo_name.git new_directory_name
git clone <repository_url>
git branch -a
git checkout <branch_name>