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/

posted @ 2023-03-20 13:14  xiaoxuxli  阅读(13)  评论(0编辑  收藏  举报