如何使用 git 安装 devoloper 版本或任何其他版本的应用程序?

How to install devoloper version or any other version of an application using git?

我需要从 GitHub 安装 gns3-server 2.1.10dev2 版本 https://github.com/GNS3/gns3-server 要安装常规版本,我使用标签、结帐和设置脚本。git tag --list git checkout v2.1.9然后 sudo python3 setup.py install
我想安装 2.1.10dev2 版本,我无法签出版本,因为没有标签。我如何安装该版本?

__version__ = "2.1.10dev2" 已在提交 089d25c. There are more than 10 commits since then in the branch 2.1 中设置。您必须决定要构建这些提交中的哪一个,检查并构建。

您可以简单地在分支中构建最新的提交:

git checkout 2.1
python3 setup.py install