相关疑难解决方法(0)

使用 git clone --depth 1 克隆 repo 后如何获取远程分支

我的回购历史悠久,所以我克隆使用

git clone <url> --depth 1
Run Code Online (Sandbox Code Playgroud)

现在我在主分支。

如何获取之前分支 3 个提交的名为“功能/我的功能”的远程分支?

我试过了:

git checkout -b feature/my-feature  origin/feature/my-feature
Run Code Online (Sandbox Code Playgroud)

git fetch -all
Run Code Online (Sandbox Code Playgroud)

但我仍然只看到 master 分支

git

7
推荐指数
1
解决办法
2148
查看次数

标签 统计

git ×1