[Development] Managing branches of Qt's git modules

Kai Koehne Kai.Koehne at qt.io
Fri Sep 30 17:34:44 CEST 2016




> -----Original Message-----
> From: Development [mailto:development-bounces+kai.koehne=qt.io at qt-
> project.org] On Behalf Of Sean Harmer
> Sent: Friday, September 30, 2016 12:39 PM
> To: development at qt-project.org
> Subject: [Development] Managing branches of Qt's git modules
> 
> 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?

  git submodule foreach "git fetch && (git checkout 5.8 || git checkout master) "

et voila :) Feel free to append a 

  && git reset --hard @{u} && git clean -fxd

if you want a clean slate. This works also on Windows.

Kai


More information about the Development mailing list