Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: "This branch is behind" after pull request

I'm new to Git and Github. I have a repo with 2 branches: Master and Develop.

  • Master is the base branch and considered the stable branch (this is the branch pulled by my webserver).
  • Develop is the branch where all my latest code is in.

So after developing some new features, I created a pull request and merged the develop into the master branch. But when I select the development branch, GitHub tells me: "This branch is 1 commit behind master." But why? I understand that the pull request is handled as a commit to my master branch, but the warning doesn't feel right to me.

Or to make it short: How can I bring my master branch up to date with my development branch without causing warnings/conflicts?

Thanks.

like image 547
LuMa Avatar asked Dec 25 '15 15:12

LuMa


People also ask

What should I do with branch after pull request?

After receiving the pull request, the project maintainer has to decide what to do. If the feature is ready to go, they can simply merge it into main and close the pull request. But, if there are problems with the proposed changes, they can post feedback in the pull request.

Does a branch get deleted after pull request?

You can have head branches automatically deleted after pull requests are merged in your repository. Anyone with admin permissions to a repository can enable or disable the automatic deletion of branches. On GitHub.com, navigate to the main page of the repository.

Does a pull request need a new branch?

A pull request signals that you want some changes in your branch merged to a target branch. One example might be that you make a new branch "my-feature" based on the current development branch (say, "master").

Can I push to a branch with a pull request?

Once you've created a pull request, you can push commits from your topic branch to add them to your existing pull request. These commits will appear in chronological order within your pull request and the changes will be visible in the "Files changed" tab.


1 Answers

To make it clear what solved your problem:

unchecked the "Include administrators" option

And now you was able to push as always.

like image 85
CodeWizard Avatar answered Oct 06 '22 23:10

CodeWizard