Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is github 'compare & pull request'

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?

like image 476
Manav Kataria Avatar asked Oct 29 '13 04:10

Manav Kataria


People also ask

How does GitHub compare work?

The two-dot comparison shows the difference between the latest state of the base branch (for example, main ) and the most recent version of the topic branch. To see two committish references in a two-dot diff comparison on GitHub, you can edit the URL of your repository's "Comparing changes" page.

Where is compare in GitHub?

On the Github, go to the Source view of your project. You will see a link named 'Branch List'. Once the page opens you can see a list of all the remote branches. Hit on the Compare button in front of any of the available branches to see the difference between two branches.


1 Answers

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".

like image 176
Eevee Avatar answered Oct 19 '22 00:10

Eevee