在bitbucket上,新创建的git分支未显示在活动或合并的分支列表中

在bitbucket上,新创建的git分支未显示在活动或合并的分支列表中,git,bitbucket,git-branch,Git,Bitbucket,Git Branch,我的主要分支是师父 我运行了以下命令: git checkout develop git branch feature/profile git checkout feature/profile git pull origin develop 我已经创建了这个新分支,但我必须将我的命名分支(如“abc”)合并到“feature/profile”,但bitbucket上的feature/profile不存在 如果我跑 git branch -a 我明白了: *develop featur

我的主要分支是师父

我运行了以下命令:

git checkout develop

git branch feature/profile

git checkout feature/profile

git pull origin develop
我已经创建了这个新分支,但我必须将我的命名分支(如“abc”)合并到“feature/profile”,但bitbucket上的feature/profile不存在

如果我跑

git branch -a 
我明白了:

*develop
feature/profile
abc
master
...
...
此时,我在feature branch中没有任何工作要做。

Bitbucket不“知道”您新创建的本地分支,直到您实际推送它。因此,请尝试:

git push origin feature/profile
推送后,它应显示在活动分支列表中


注意,这是Git的典型行为,Git的创建目的是使其成为一个高度分布式的版本控制系统。也就是说,您可以创建本地分支,使用它,等等,而远程Bitbucket不需要知道这一点。

感谢Tim Biegeleisen branch在git push origin“branch name”之后出现。我不知道git push origin“branch name”可以在没有任何推送的情况下工作。