嗨,我需要从 git repo 的分支安装。我想将它包含在 requirements.txt 中,以便使用命令进行安装pip install -r requirements.txt
我所知道的是如何从 master 分支安装(参见下面的 git ssh 条目):
这是我的requirements.txt
networkx==2.4
numpy==1.18.1
opencv-python==4.2.0.32
scipy==1.4.1
git+ssh://git@gitlab.com/project/project-utils.git
如果我想从特定分支(即1-fix-test
在ssh://git@gitlab.com/project/project-utils.git
.
如何在 ssh 地址中包含分支名称?