54

I am working on a MeteorIntegration (feature) branch that is published. I did a git push assuming the push was going to the checked-out branch MeteorIntegration:

And now I see the following on both master and MeteorIntegration branches.

github snap

I read github documentation: Closing a pull request and Tidying up Pull Requests but that didn't help, possibly because I am not dealing with a pull request here?

How do I get rid of this compare & pull request?

Manav Kataria
  • 5,060
  • 4
  • 24
  • 26

2 Answers2

77

You don't actually have a pull request; GitHub just sees that you've pushed a branch, and is offering to create a pull request for it if you want.

If you don't care about that, just ignore it. It's completely harmless and will go away as soon as GitHub doesn't think the branch is "recent".

Eevee
  • 47,412
  • 11
  • 95
  • 127
  • 2
    Thank you for this nice explanation. I was worried, too. (._.) – NYCeyes Nov 21 '18 at 02:18
  • 1
    I was worried too. I thought I might have mumbled a bit on a few of those runic `git` chants. I am glad my `git` wizardry worked out in the end, though! You have my upvote, Eevee! +1 – Mr.Zeus Feb 16 '20 at 01:21
  • 14
    Would be nice to be able to have an "ignore" button though... – Ben Winding Jul 22 '20 at 07:23
0

You should actually change your branch. Go to your repository settings> branch>toggle btw master/main and update. This should reflect all the files and folders in your repository.