> -----Original Message-----
> From: Development [mailto:development-bounces+kai.koehne=qt.io@qt-
> project.org] On Behalf Of Sean Harmer
> Sent: Friday, September 30, 2016 12:39 PM
> To: development@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
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to