[Development] What is fastest way to checkout stable branch for every submodule for qt5 repository?
Mark
markg85 at gmail.com
Fri Dec 21 11:31:13 CET 2012
On Fri, Dec 21, 2012 at 9:54 AM, Sergio Ahumada
<san at sansano.inf.utfsm.cl> wrote:
> On 12/21/2012 09:50 AM, liang jian wrote:
>> I have an old clone of qt5 which have only master branch, to
>> update this clone I use the following command:
>>
>> git pull
>> git branch stable origin/stable
>> git submodule foreach --recursive 'git checkout stable'
>>
>
> git submodule foreach 'git checkout stable ||:'
>
>
> --
> Sergio Ahumada
> san at sansano.inf.utfsm.cl
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
checkout the qt5 meta module
.. follow procedure for init module stuff ..
git checkout <branch>
If you already have the meta module then it's just:
git checkout <branch>
That will get all repos to the branch you entered.
More information about the Development
mailing list