#查看远程分支
git branch -r
#拉取远程分支
git fetch origin 分支
#切换到远程分支
git checkout 分支
git checkout origin/branch
#查看所有分支
git branch -a
#查看远程分支
git branch -r
# 浅克隆仓库时只保留最近10个更新
git clone --depth 10 https://github.com/user/repo.git
获取某个分支的最近 N 次提交
git fetch origin <远程分支名> --depth=N
git fetch origin <远程分支>:<本地分支> --depth=N
git branch
git checkout 分支
git fetch --unshallow # 获取完整历史