[U-Boot] Attn Maintainers: git advise needed (how to fix messed up repo)

Andy Fleming afleming at gmail.com
Tue Nov 29 00:16:38 CET 2011


On Mon, Nov 28, 2011 at 5:13 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Monday 28 November 2011 18:05:00 Graeme Russ wrote:
>> On Tue, Nov 29, 2011 at 10:02 AM, Mike Frysinger wrote:
>> > On Monday 28 November 2011 17:31:19 Graeme Russ wrote:
>> >> $ git fetch u-boot
>> >> ...
>> >> $ git rebase u-boot/master
>> >> ...
>> >> $ git push ssh://gu-x86@git.denx.de/u-boot-x86
>> >> ...
>> >> To ssh://gu-x86@git.denx.de/u-boot-x86
>> >>  ! [rejected]        master -> master (non-fast-forward)
>> >
>> > well, you did a rebase, so this is kind of par for the course.  use
>> > --force to rewrite the published branch.
>>
>> So how do you keep the sub-repo up-to-date with u-boot/master without
>> doing forced pushes?
>
> you don't :).  the way *i* work is to keep my changes in my own branch that i
> rewrite, and then once i want to send that to Wolfgang, i publish the updated
> master branch for him to pull from.
>
> i think the u-boot wiki has a "suggested maintainer workflow", but i haven't
> looked too hard at that as i like (logically) how i do things now.

Yes, I only push up changes that I don't intend will ever be changed.

Unless I forget.

If your tree contains changes that aren't yet in Wolfgang's tree, but
*are* published in your upstream tree, then you can try:

git merge u-boot/master.

It should work, as long as your patches can still be pulled into his
tree, cleanly.

Andy


More information about the U-Boot mailing list