Pipenv:您可以为 "ref" 参数使用什么类型的 github 引用?

Pipenv: What types of github reference can you use for the "ref" argument?

使用 pipenv 引入 github 存储库时,"ref" 参数可以使用哪些类型的引用?

它可以是一个功能分支吗? 它可以是发布版本吗? 它可以是标记分支吗?

我已查看此处的文档:

https://pipenv.kennethreitz.org/en/latest/basics/#a-note-about-vcs-dependencies

# Pipfile with tag version (v0.0.2):
my-sdk = {editable = true,git = "git@github.com/MyDev/my-sdk.git", ref = "v0.1.2"}

根据the pip documentation,您可以使用"branch name, a commit hash, a tag name or a git ref"。所以任何分支、标签、完整引用或提交哈希都是允许的。

还可以使用任意 Git 修订表达式,但没有记录证明它可以工作。