Skip to content

Merge a branch from another branch in master #21704

Answered by Wabri
PierBJX asked this question in New to GitHub
Discussion options

You must be logged in to vote

Hi @pierbjx,

Welcome to the Github Community Forum!

@pierbjx wrote:

My questions are:

  • In my 2nd pull request, will l have only the 3 commits of the branch 2 or the 6 commits of the branch 1 and 2 ? Indeed, given that the branch 1 has been merged in master its 3 commits are no longer new in branch 2.

If the branch1 are already merge into master, the changes made by the 3 commits of branch1 are now also in master. The master already have the 3 commits of the branch1 then the Pull Request for branch2 analyze only the 3 new commits made by himself.

@pierbjx wrote:

  • Same questions for the files changed in branch 1, will they appear in the pull request of the branch 2 even if the bra…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants