Skip to main content

Git2种方法从远程仓库拉取指定的某一个分支

· One min read
# 方法1
git clone -b url
# 方法2,最暴力,主分支下会拉取所有分支
git fetch
git checkout 分支名