我创建了一个功能分支。它看起来像这样:
以前当我创建一个功能分支时,它也出现在遥控器上,但现在它不存在。现在,当我尝试推送SourceTree时,我收到以下错误:
int width = imgView.getDrawable().getIntrinsicWidth();
int height = imgView.getDrawable().getIntrinsicHeight();
我也尝试过命令行......
To https://myname-mycompany@bitbucket.org/mycompany/projectname.git
! [remote rejected] feature/data_utilities -> feature/data_utilities (failed to write)
error: failed to push some refs to 'https://myname-mycompany@bitbucket.org/mycompany/projectname.git'
...但我得到了相同的结果。当我查看BitBucket时,功能分支不存在。
答案 0 :(得分:2)
我不使用BitBucket,但是从命令行创建功能分支的过程非常简单。
git checkout develop
git checkout -B feature_branch
# This command creates a new branch and switches context to the newly created branch
git push -u origin feature_branch
# This will create the branch on origin and set it up to be a tracking branch