I know this question has already been asked here but I'm just having some weird problem that I would like to solve with your help.
So I've got a branch named feature-kernel that I would like to fork from and I want to create feature-new-feature. So here's what I did while staying on some third branch:
git checkout -b feature-new-feature feature-kernelgit push --set-upstream origin feature-new-feature
Then I checked my bitbucket and in Branches it shows that the parent branch of the feature-new-feature branch is master.
How is this possible? What am I doing wrong?
git branchdoes not have the option-b. Maybe you meangit checkout -b feature-new-feature feature-kernel? Second, Git does not have the concept ofparent branchalthough I understand what you mean by it. Iffeature-kernelandmasterhappened to point to the same commit whenfeature-new-featurewas created, then we can say bothfeature-kernelandmasterare "parent branches".git checkout -bGive me a sec to realise it