<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 25, 2014 at 1:54 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> writes:<br>
<br>
> The relavent commit is:<br>
><br>
>>>>>>><br>
> commit 6b2b7f7bcb48548709a46ae3e973244865b14f7a<br>
> Author: Patrick Farrell <<a href="mailto:patrick.farrell@imperial.ac.uk">patrick.farrell@imperial.ac.uk</a>><br>
> Date: Thu Nov 20 16:05:42 2014 +0000<br>
><br>
> Add a function to get the number of subsneses in a SNESCOMPOSITE.<br>
> <<<<<<<<br>
> However I don't see the corresponding branch<br>
><br>
>>>>>>><br>
> $ git branch -r --contains 6b2b7f7bc<br>
> origin/next<br>
> <<<<<<<br>
><br>
> Looking at next history - I see the merge commit as:<br>
><br>
>>>>>><br>
> commit 7deaeafb548c56ebd72003c8eb58fab332a617be<br>
> Merge: 2ce25a1 6b2b7f7<br>
> Author: Matthew G. Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>><br>
> Date: Thu Nov 20 10:51:43 2014 -0600<br>
><br>
> Merge remote-tracking branch 'pefarrell/snes-composite-get-number' into next<br>
<br>
It looks like Matt has a remote named "pefarrell". One way to bring in<br>
the remote branch is:<br>
<br>
git fetch pefarrell snes-composite-get-number:pefarrell/snes-composite-get-number<br>
git merge pefarrell/snes-composite-get-number # merging to 'next'<br>
git push origin pefarrell/snes-composite-get-number next<br>
</blockquote></div><br>Here is what I put in my config:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">[remote "patrick"]</div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>url = git@bitbucket.org:pefarrell/petsc</div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>fetch = +refs/heads/pefarrell/snes-composite-get-number:refs/remotes/pefarrell/snes-composite-get-number</div><div><br></div><div>Then I do</div><div><br></div><div> git fetch patrick</div><div><br></div><div>and then</div><div><br></div><div> git checkout next</div><div> git merge pefarrell/snes-composite-get-number</div><div><br></div><div>So does your fetch line create a local branch?</div><div><br></div><div> Matt</div><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>