Git clone command clones the default or master repository from git remote source. If need to clone a specific branch, we need to specify the branch name in the git clone command. Here is the command to do so
git clone --branch <branch-name> <git-url-to-clone>
Or we can write the same command as follows
git clone -b <branch-name> <git-url-to-clone>
Hope this helps.
Happy Coding 🙂