<br><br><div class="gmail_quote">2008/11/13 martin f krafft <span dir="ltr"><<a href="mailto:madduck@debian.org">madduck@debian.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
also sprach Paul Harris <<a href="mailto:paulharris@computer.org">paulharris@computer.org</a>> [2008.11.13.1448 +0100]:<br>
> Attached are 3 patches, you clone the git repo and then use "git<br>
> am" to apply each one in turn (Martin already knows this,<br>
> I didn't)<br>
<br>
A better way to share those would probably be a branch you publish.<br>
So you could e.g.<br>
<br>
git checkout -b paulharris/some-name<br>
<br>
then apply/am/cherry-pick the commits that are part of "some-name"<br>
(you might want to make more than one branch) into the branch and<br>
push it (git push origin paulharris/some-name).<br>
<br>
Then, people can just do<br>
<br>
git fetch origin<br>
git checkout -b paulharris/some-name origin/paulharris/some-name<br>
<br>
to try it out.<br>
<br>
If you have those three patches on top of origin/master right now,<br>
so that your master is three commits ahead from origin/master, then<br>
you could do this:<br>
<br>
git checkout -b paulharris/feature1 master<br>
git cherry-pick <commit belonging to feature1> <another commit><br>
git checkout -b paulharris/feature2 master<br>
git cherry-pick <commit belonging to feature2><br>
</blockquote><div><br><br>i tried this and stuffed it up. my patches are one-after-the-other and there is a fair bit of overlap, so I thought i'd start with just 1 branch ...<br><br>git clone etc<br>cd libkdtree<br>
git checkout -b paulharris/bugfixes master <br>git am ../0001<br>git am ../0002<br>git am ../0002<br><br>so all looks good... now what?<br>git push says "everything up-to-date"<br></div></div><br>? i just don't get git ?<br>
<br>