[Development] Switching remote url for qt5 git clone

Thiago Macieira thiago.macieira at intel.com
Fri Mar 27 00:37:15 CET 2015

On Thursday 26 March 2015 15:57:23 Adam Light wrote:
> I'd like to move my checkout to git://code.io.qt.
> I can use git remote set-url for the base and then for each submodule, but
> it seems like there must be a better (that is, automatic) way to do this.
> Any suggestions?

git submodule foreach '
 git remote set-url origin `git config --get remote.origin.url | \
	sed s,gitorious.org,code.qt.io,`'

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list