Git (1) clone from a specific branch
20230320
git clone --branch <branchname> <remote-repo-url>
or
git clone -b <branchname> <remote-repo-url>
example below:
git clone -b passwordless-auth git@github.com:BolajiAyodeji/nextjs-blog.git
参考:
[1] https://www.freecodecamp.org/news/git-clone-branch-how-to-clone-a-specific-branch/