[LRUG] git question
Taryn East
teast at globalpersonals.co.uk
Thu Aug 20 05:10:32 PDT 2009
2009/8/20 Chris Mear <chrismear at gmail.com>
> On 20 Aug 2009, at 12:38, Taryn East wrote:
>
> I do/did... but you can't use gitk to make patches... which would have
>> made sense to me. In my mind I could "cherry pick" the commits I wanted in
>> the patch and that would be nice... but it doesn't work that way :P
>>
>> In the end I basically hand-copied the SHA1 ids of the commits I'd made
>> (because there was all the cruft in there from rails/rails... pages and
>> pages of it that had been done in the meantime) and then used those to feed
>> into git-log -p for the patch.
>>
>
> Ah. Were you working directly on the master branch, and then doing git pull
> to get up-to-date?
>
> In other words, does gitk look like this:
>
> http://feedmechocolate.com/stuff/mergingmaster.png
yep - that's it exactly :)
If so, git pull would be doing merges for you, which isn't what you want --
> it ends up with the interleaved scenario you seem to be describing.
cool - so at least I know how I got into the opriginal mess... and now I
know how to work on a branch.
So as long as I work on a fork what would be the steps to making a patch?
branch... commit, commit, commit, pull+rebase... then what?
form-patch for all commits in the branch?
would that apply to the upstream (ie rails/rails) or just my fork?
Cheers,
Taryn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20090820/15cb9b00/attachment-0003.html>
More information about the Chat
mailing list