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.

Can someone please explain how to do this for future reference?

  • Why is merge-based SCM better than a lock-based system?
  • Merge several branch commits to master
  • Git repo: internal and open source external branches
  • How to undo a fast-forward merge in git without using reset
  • git merge and got this error “does not point to a commit”
  • Calculating total lines added/deleted after a merge?
  • Push git repository to remote subversion with history
  • git fetch/merge non-fast-forward changes?
  • 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.

    Git Baby is a git and github fan, let's start git clone.