git url

中英双语
  • <git:// url>
  • <github username>/<github project>

指 git repo 中的包。这可以是完整的 git url、git 速记或 GitHub 上的用户名/包。您可以通过附加 #ref 来指定 git 标记、分支或其他 git ref。

例子:

  • https://github.com/npm/cli.git
  • git@github.com:npm/cli.git
  • git+ssh://git@github.com/npm/cli#v6.0.0
  • github:npm/cli#HEAD
  • npm/cli#c12ea07