git bash操作指令

克隆项目指定分支:

# <branchname> 分支名,<remote-repo-url> 远程仓库url
git clone --branch <branchname> <remote-repo-url>
或
git clone -b <branchname> <remote-repo-url>

查看项目仓库的分支列表

# 进入项目目录中
git branch -a
posted @ 2024-08-13 16:41  二月雪  阅读(1)  评论(0编辑  收藏  举报