[Development] Managing branches of Qt's git modules

Sean Harmer sean.harmer at kdab.com
Fri Sep 30 13:05:22 CEST 2016

On 30/09/2016 11:57, Marc Mutz wrote:
> On Friday 30 September 2016 12:39:20 Sean Harmer wrote:
>> Hi,
>> just a query as to how people do bulk checkouts of different branches
>> when working with the Qt git modules. It would be nice to be able to use
>> git submodule foreach ... but this is a problem because not all modules
>> use the same branching scheme.
>> So, what do people do to checkout all interesting modules to 5.7, 5.8,
>> dev etc on Unix like systems and on Windows?
>> On *nix systems I've been getting away with a simple bash for loop. But
>> on windows I find this painful but maybe that's just my unfamiliarity
>> with windows batch scripts.
> to speed up fetching:
>   git submdule foreach "git fetch --all &"
> for everything else there's the repo tool, though I have not gotten around
> to checking it out, since most of my work is in qtbase.
>   git checkout <branch>
>   git submodule update --rebase

Thanks! Somehow I'd missed knowing about the --rebase option.

> doesn't do what you want?

Looks like it should.



Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts

More information about the Development mailing list