3

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

git clone git://code.qt.io/qt/qt5.git

这会给出 qt 5.5 版本还是 qt 5.6 alpha 版本?

有没有办法指定版本?

我看到一个命令:

git clone https://github.com/qtproject/qt5.git --branch v5.3.1**

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

4

1 回答 1

8

当然可以:只需查看https://github.com/qtproject/qt5/branches并查看可用的分支。正如你所注意到的,你想要的分支被调用5.5了——所以在 git clone 命令中使用它。:)

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

编辑:我刚刚注意到,qt5 存储库使用子模块来组织所有内容。为了也检查它们(而不仅仅是有空文件夹),请参阅this SO answer on how to checkout git submodules as well。:)

于 2015-11-13T10:44:06.913 回答