Home > OS >  GitHub/Git: Can't create pull request (no button) with specific branch
GitHub/Git: Can't create pull request (no button) with specific branch

Time:09-25

I have 3 branch: main, test-1.1 and myName.
If I try to create pull request with myName and main, I will be able to do it:
enter image description here

But know, if I replace main with my test-1.1 branch, it gives me that:
enter image description here But, why ? I want to merge with test-1.1 but I am not able to.
How to resolve this ?

CodePudding user response:

It looks like you have two branches that (no longer) share the same root-commit. Therefore, GitHub can't generate a Pull Request for you. Technically your two branches are totally unrelated (even if they contain similar content).

CodePudding user response:

Do main, test-1.1, and myName all belong to the same branch?

To answer for your specific case, we'd need more information (what was on the branches) because github is comparing branches and telling you which ones can be merged and which cannot. If they can be merged, github is allowing you to create a pull request to merge myName into master. There must be 'merge conflicts' between the myName and test-1.1 branch.

  • Related