Git命令简介

克隆单独分支

git clone --single-branch --branch <branchname> <remote-repo>

ref: https://stackoverflow.com/questions/1911109/how-do-i-clone-a-specific-git-branch

vs 拉取独立分支:

git checkout --track origin/daves_branch

ref: https://stackoverflow.com/questions/9537392/git-fetch-remote-branch

更多

Git submodule简介
Git连接问题

发布了26 篇原创文章 · 获赞 0 · 访问量 1071

猜你喜欢

转载自blog.csdn.net/qq_41212157/article/details/101108294