如何在我的本地存储库中看到最近在 Bitbucket 存储库中创建的分支?

How can I see in my local repository a recently created branches in the Bitbucket repository?

我只是想将最近在 Bitbucket 中创建的分支 'brancTest' 导入我的本地存储库。

这就是我在做的事情git checkout -b 'brancTest' origin/brancTest 我收到这条消息:

fatal: 'origin/brancTest' is not a commit and a branch 'brancTest' cannot be created from it 

我正在开发 git 状态给我这个:

git status  
On branch develop
Your branch is up-to-date with 'origin/develop'.
nothing to commit, working tree clean

当我执行 git branch -a 时,我在所有分支的列表中看不到 'brancTest'。

如何导入那个分支?

git fetch
git checkout brancTest

尝试 "git remote -v" 验证其中是否列出了任何名为 'origin' 的遥控器。

如果您没有找到 'origin',那就是缺少远程(应该在克隆存储库时默认创建的)。

在这种情况下使用以下再次添加来源:

git远程添加源url/to/your/fork