Merged branches locally, now how do I get GitHub to show that as a pull request?
So I have two branches which I merged locally and thus created a commit. I then pushed the unified branch to my remote where the two branches existed. I’m guessing this is not how it is done since Github doesn’t reflect the merge, it simply shows a commit on branch A with the merge message. But it still shows both separate branches.
When I try to merge both branches on Github as a pull-request, there is nothing to merge since both branches are now the same.
- Suitable options for git log -p if worried about evil merges
- How to resolve git merge conflict, from command line, using a given strategy, for just ONE file?
- git: fast-forward merge without touching the working tree
- How to merge or rebase in git when the directory structure changed?
- how to merging works with git
- Merging branch which contains revert commit to master overriding changes in master
Can someone please explain how to do this for future reference?
One Solution collect form web for “Merged branches locally, now how do I get GitHub to show that as a pull request?”
it simply shows a commit on branch A with the merge message. But it still shows both separate branches.
That is expected: your merge commit should show two parents, which means the second branch is still accessible from the merge commit, while your “unified branch” lives on.
Merging does not mean deleting the second branch.