How to merge master into branch submitted as pull request?











up vote
0
down vote

favorite












Scenario:




  • I sent a pull request up that is being reviewed. (1)

  • While my pull request was being reviewed, another pull request got merged into master. (2)

  • When this happened, the travis builds for my pull request started failing because of the changes in (2).

  • (2) has some new files that are not yet present in my pull request


Question
How can I get the master and merge it into my branch and push the changes to github so that travis builds start again.










share|improve this question






















  • How does Travis build knew about 2 if it was building for 1 ? Travis build for 1 should not be affected by 2. Best solution for your problem - abandon 1, merge master in your branch and raise new PR 3.
    – Aky_0788
    Nov 9 at 3:51










  • Take a look at stackoverflow.com/questions/53199291/… I think that might be what you need.
    – asherber
    Nov 9 at 3:54















up vote
0
down vote

favorite












Scenario:




  • I sent a pull request up that is being reviewed. (1)

  • While my pull request was being reviewed, another pull request got merged into master. (2)

  • When this happened, the travis builds for my pull request started failing because of the changes in (2).

  • (2) has some new files that are not yet present in my pull request


Question
How can I get the master and merge it into my branch and push the changes to github so that travis builds start again.










share|improve this question






















  • How does Travis build knew about 2 if it was building for 1 ? Travis build for 1 should not be affected by 2. Best solution for your problem - abandon 1, merge master in your branch and raise new PR 3.
    – Aky_0788
    Nov 9 at 3:51










  • Take a look at stackoverflow.com/questions/53199291/… I think that might be what you need.
    – asherber
    Nov 9 at 3:54













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Scenario:




  • I sent a pull request up that is being reviewed. (1)

  • While my pull request was being reviewed, another pull request got merged into master. (2)

  • When this happened, the travis builds for my pull request started failing because of the changes in (2).

  • (2) has some new files that are not yet present in my pull request


Question
How can I get the master and merge it into my branch and push the changes to github so that travis builds start again.










share|improve this question













Scenario:




  • I sent a pull request up that is being reviewed. (1)

  • While my pull request was being reviewed, another pull request got merged into master. (2)

  • When this happened, the travis builds for my pull request started failing because of the changes in (2).

  • (2) has some new files that are not yet present in my pull request


Question
How can I get the master and merge it into my branch and push the changes to github so that travis builds start again.







git github






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 3:47









Anthony

9,3662288172




9,3662288172












  • How does Travis build knew about 2 if it was building for 1 ? Travis build for 1 should not be affected by 2. Best solution for your problem - abandon 1, merge master in your branch and raise new PR 3.
    – Aky_0788
    Nov 9 at 3:51










  • Take a look at stackoverflow.com/questions/53199291/… I think that might be what you need.
    – asherber
    Nov 9 at 3:54


















  • How does Travis build knew about 2 if it was building for 1 ? Travis build for 1 should not be affected by 2. Best solution for your problem - abandon 1, merge master in your branch and raise new PR 3.
    – Aky_0788
    Nov 9 at 3:51










  • Take a look at stackoverflow.com/questions/53199291/… I think that might be what you need.
    – asherber
    Nov 9 at 3:54
















How does Travis build knew about 2 if it was building for 1 ? Travis build for 1 should not be affected by 2. Best solution for your problem - abandon 1, merge master in your branch and raise new PR 3.
– Aky_0788
Nov 9 at 3:51




How does Travis build knew about 2 if it was building for 1 ? Travis build for 1 should not be affected by 2. Best solution for your problem - abandon 1, merge master in your branch and raise new PR 3.
– Aky_0788
Nov 9 at 3:51












Take a look at stackoverflow.com/questions/53199291/… I think that might be what you need.
– asherber
Nov 9 at 3:54




Take a look at stackoverflow.com/questions/53199291/… I think that might be what you need.
– asherber
Nov 9 at 3:54












1 Answer
1






active

oldest

votes

















up vote
0
down vote













After the other pull request has been approved - which resulted in the changes to be merged into master - you now need to merge master back to you branch and retest your branch.



You can do it via:




  1. git fetch origin master

  2. git merge origin/master

  3. git push


or




  1. git checkout master

  2. git pull

  3. git checkout your_branch

  4. git merge master

  5. git push






share|improve this answer





















  • I have the original repository (the one I forked) as upstream
    – Anthony
    Nov 9 at 11:59











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219586%2fhow-to-merge-master-into-branch-submitted-as-pull-request%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













After the other pull request has been approved - which resulted in the changes to be merged into master - you now need to merge master back to you branch and retest your branch.



You can do it via:




  1. git fetch origin master

  2. git merge origin/master

  3. git push


or




  1. git checkout master

  2. git pull

  3. git checkout your_branch

  4. git merge master

  5. git push






share|improve this answer





















  • I have the original repository (the one I forked) as upstream
    – Anthony
    Nov 9 at 11:59















up vote
0
down vote













After the other pull request has been approved - which resulted in the changes to be merged into master - you now need to merge master back to you branch and retest your branch.



You can do it via:




  1. git fetch origin master

  2. git merge origin/master

  3. git push


or




  1. git checkout master

  2. git pull

  3. git checkout your_branch

  4. git merge master

  5. git push






share|improve this answer





















  • I have the original repository (the one I forked) as upstream
    – Anthony
    Nov 9 at 11:59













up vote
0
down vote










up vote
0
down vote









After the other pull request has been approved - which resulted in the changes to be merged into master - you now need to merge master back to you branch and retest your branch.



You can do it via:




  1. git fetch origin master

  2. git merge origin/master

  3. git push


or




  1. git checkout master

  2. git pull

  3. git checkout your_branch

  4. git merge master

  5. git push






share|improve this answer












After the other pull request has been approved - which resulted in the changes to be merged into master - you now need to merge master back to you branch and retest your branch.



You can do it via:




  1. git fetch origin master

  2. git merge origin/master

  3. git push


or




  1. git checkout master

  2. git pull

  3. git checkout your_branch

  4. git merge master

  5. git push







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 9 at 4:28









tymtam

6,28133154




6,28133154












  • I have the original repository (the one I forked) as upstream
    – Anthony
    Nov 9 at 11:59


















  • I have the original repository (the one I forked) as upstream
    – Anthony
    Nov 9 at 11:59
















I have the original repository (the one I forked) as upstream
– Anthony
Nov 9 at 11:59




I have the original repository (the one I forked) as upstream
– Anthony
Nov 9 at 11:59


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219586%2fhow-to-merge-master-into-branch-submitted-as-pull-request%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff