如何在我的本地存储库中看到最近在Bitbucket存储库中创建的分支? [英] How can I see in my local repository a recently created branches in the Bitbucket repository?

查看:430
本文介绍了如何在我的本地存储库中看到最近在Bitbucket存储库中创建的分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这就是我正在做的

git checkout -b'brancTest'origin / brancTest
我收到以下消息:

 致命:'origin / brancTest'不是一个提交,并且无法从它创建分支'brancTest'



<

  git status 
在分支上开发
您的分支与原产地/开发保持同步。
没有提交,工作树干净

当我做 git分支-a 我看不到所有分支列表中的'brancTest'。



如何导入该分支?

解决方案

git fetch
git checkout brancTest


I am just trying to import the branch 'brancTest' recently created in Bitbucket into my local repository.

This is what I am doing git checkout -b 'brancTest' origin/brancTest And I get this message:

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

I am in my develop an git status give me this:

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

When I do git branch -a I can't see 'brancTest' in the list of all branches.

How to import that branch?

解决方案

git fetch
git checkout brancTest

这篇关于如何在我的本地存储库中看到最近在Bitbucket存储库中创建的分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆