git clone克隆指定分支 Melody Jerry 2021-01-28 字数统计: 111字 阅读时长≈ 1分 12git branch -r # 列出远程跟踪分支git branch -a # 查看所有分支 git clone 默认 会把远程仓库 整个 给clone下来;但只会在本地默认创建一个master分支如果远程还有其他的分支,此时用git branch -a查看所有分支。 12# clone用参数-b指定分支git clone -b 分支名 https://github.com/用户名/仓库名.git 参考资料 克隆 GitHub Repo 非 Master 分支 更新于 2021年1月28日 Git 下一页 ubuntu更换apt源 Linux Ubuntu