git clone repo-url
# Clone only a specific branch
git clone -b <branch> <repo-url>
# Clone only the latest commit
git clone <repo-url> --shallow
git clone repo-url
# Clone only a specific branch
git clone -b <branch> <repo-url>
# Clone only the latest commit
git clone <repo-url> --shallow