Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does github show me "Your recently pushed branches"?

Tags:

I fast-forwarded a couple of development branches to be up-to-date with master, and pushed them to a private repository. The private repo is owned by the client's github account and I am a collaborator.

Now, github shows me two links under "Your recently pushed branches:", each containing "Pull request" and "Compare". When I click on "Pull request" out of curiosity, it shows me: Oops! master is already up-to-date with feature Try a different branch?. It's the same story for any other branch because they are all fast-forward updated. So what is the point of these links?

like image 551
Aditya M P Avatar asked Nov 10 '12 11:11

Aditya M P


People also ask

How do I stop pushing to master on GitHub?

To find it go to Settings > Branches > Branch Protection Rules and click 'Add Rule'. Then, enter the name of the branch you want to protect and click the checkbox to require pull request reviews before merging. By default, this only stops people who are not moderators.

What does GitHub pull request mean?

Pull requests let you tell others about changes you've pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch.

Should you delete branch after pull request?

The rule of thumb that we use (which is here some where on Stack Overflow) is "branches are for work, tags are for history". Whenever a branch is merged (most likely into master) we tag the merge point using the name of the branch with the prefix "branch" (e.g. branch-topic). Then delete the branch.


2 Answers

In my situation this message disappeared themself after about 2 hours.

like image 65
Artem P Avatar answered Sep 27 '22 17:09

Artem P


Those links let you quickly compare or open a pull request from one your branch. They're displayed when a recently pushed branch is ahead of the remote HEAD. Most of the time, the remote HEAD points to master (this can be changed by tweaking the "default branch" of the repository in the Admin section).

As it looks like your remote HEAD points to master, those links should not be displayed indeed. The good move would be to send a mail [email protected]..

like image 26
nulltoken Avatar answered Sep 27 '22 19:09

nulltoken