如何从git克隆qt源代码

Abi*_*bin 1 git qt qt5.5 qt5.6

我需要qt5.5源代码,我看到了这个命令:

git clone git://code.qt.io/qt/qt5.git
Run Code Online (Sandbox Code Playgroud)

这是否提供qt 5.5版本或qt 5.6 alpha版本?

有没有办法指定版本?

我看到一个命令:

git clone https://github.com/qtproject/qt5.git --branch v5.3.1**
Run Code Online (Sandbox Code Playgroud)

我可以使用类似的命令来获取qt 5.5版本吗?

mh1*_*166 7

当然你可以:只需看看https://github.com/qtproject/qt5/branches并查看可用的分支机构.如您所见,您所需的分支被调用5.5- 因此请在git clone命令中使用它.:)

git clone https://github.com/qtproject/qt5.git --branch 5.5

编辑:我刚注意到,qt5存储库使用子模块来组织所有内容.为了检查它们(而不仅仅是空文件夹),请参阅这个SO答案,了解如何检查git子模块.:)