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

Git 如何在本地存储库中查看Bitbucket存储库中最近创建的分支?,git,git-checkout,Git,Git Checkout,我只是尝试将最近在Bitbucket中创建的分支“BranchTest”导入到本地存储库中 这就是我正在做的git checkout-b'branchtest'origin/branchtest 我得到这个信息: fatal: 'origin/brancTest' is not a commit and a branch 'brancTest' cannot be created from it 我处于开发git状态,请告诉我: git status On branch develop

我只是尝试将最近在Bitbucket中创建的分支“BranchTest”导入到本地存储库中

这就是我正在做的
git checkout-b'branchtest'origin/branchtest
我得到这个信息:

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分支-a时,我在所有分支的列表中看不到'branchtest'

如何导入该分支?

尝试“git remote-v”以验证其中是否列出了任何名为“origin”的远程分支

git fetch
git checkout brancTest
如果找不到“origin”,则表示缺少远程设备(在克隆repo时默认应创建远程设备)

在这种情况下,使用以下命令再次添加原点:


git remote add origin url/to/your/fork

在git fetch之后,我可以在git branch-a之后看到branchtest。此命令更新了有关远程存储库的信息。git branch-a似乎没有提供远程存储库的相关信息。