我的回购历史悠久,所以我克隆使用
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 ×1