From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Attn Maintainers: git advise needed (how to fix messed up repo)
Date: Mon, 28 Nov 2011 23:49:03 -0500 [thread overview]
Message-ID: <201111282349.04832.vapier@gentoo.org> (raw)
In-Reply-To: <CALButCKd92YMTTDEhnuzW3TcFZwrK3Lhva5TuyqE4bHnf6xzNQ@mail.gmail.com>
On Monday 28 November 2011 23:17:47 Graeme Russ wrote:
> My development is done using stacked git on development branches (I'm even
> considering using an entirely independent local git repo 'just in case')
that's fine. it's just a matter of how often you want to publish patches to
the wider world. i publish all my bleeding edge stuff, but it's in a "next"
style branch.
> With respect to u-boot-x86 - I simply want to keep it up-to-date with
> mainline and 'git am' patches I've saved from patchwork
>
> So how do I do this - Sorry, but I'm just not getting it - To me, it looks
> like your assuming I want to stick to my existing (flawed) workflow. I
> actually want to go back to square one and 'get it right'
for the published branch, you'll have to have merge commits in it. some
people don't want any merge commits (keep everything linear), while others
don't think really any are bad. i'm kind of in between ... i don't mind
merging of "good" branches.
any ways, if you want to publish your local changes with Wolfgang's latest
changes without having Wolfgang pull it first, then you'd do:
$ git checkout master
$ git fetch <upstream uri>
$ git merge u-boot/master
$ git push <x86 uri> master
you shouldn't do this too often though otherwise you'll get a whole lot of
merge commits cluttering up your history. look at Wolfgang's tree starting
around commit f9342e2c3e81d62. that's fine for Wolfgang (since he's merging
many trees), but imo, custodian trees shouldn't be gathering merge commits
which are then sent to Wolfgang for merging.
i'd draw some ascii diagrams of the commit history, but i'm not sure it would
help. instead, run `gitk` and look at the tree on the left around the merge
commits. hopefully that'll clear things up.
> > - reset your local master to your current remote master
> > $ git checkout master
> > $ git reset --hard origin/master
>
> I don't think this will work - The remote master (i.e. u-boot-x86/master
> on the denx server) has the duplicate commits already...
oh, you've already published the bum history ? i thought it was only local.
then you'll have to do:
$ git checkout master
$ git rebase u-boot/master
$ git push --force <remote uri> master
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111128/232ec7a1/attachment.pgp>
next prev parent reply other threads:[~2011-11-29 4:49 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 22:31 [U-Boot] Attn Maintainers: git advise needed (how to fix messed up repo) Graeme Russ
2011-11-28 23:02 ` Mike Frysinger
2011-11-28 23:05 ` Graeme Russ
2011-11-28 23:13 ` Mike Frysinger
2011-11-28 23:16 ` Andy Fleming
2011-11-28 23:20 ` Graeme Russ
2011-11-28 23:43 ` Mike Frysinger
2011-11-29 0:02 ` Graeme Russ
2011-11-29 3:31 ` Mike Frysinger
2011-11-29 3:35 ` Graeme Russ
2011-11-29 4:01 ` Mike Frysinger
2011-11-29 4:17 ` Graeme Russ
2011-11-29 4:49 ` Mike Frysinger [this message]
2011-11-29 5:04 ` Graeme Russ
2011-11-29 5:31 ` Andy Fleming
2011-11-29 5:36 ` Mike Frysinger
2011-11-29 10:51 ` Graeme Russ
2011-11-29 15:08 ` Mike Frysinger
2011-11-29 22:57 ` Graeme Russ
2011-11-29 23:35 ` Mike Frysinger
2011-11-29 23:48 ` Graeme Russ
2011-11-30 3:52 ` Mike Frysinger
2011-11-30 4:12 ` Graeme Russ
2011-11-30 16:41 ` Mike Frysinger
2011-11-29 9:55 ` Graeme Russ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201111282349.04832.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox