有没有一种标准的方法来指定git uri中的文件?

时间:2017-02-02 12:34:30

标签: git uri

例如,假设我想直接链接到/README.rstmaster分支中的git://git@github.com:drathier/stack-overflow-import.git。是否有标准方法在uri中格式化?我们已经在使用路径字段来指定我们在此域名上讨论的回复。

1 个答案:

答案 0 :(得分:0)

https://github.com/drathier/stack-overflow-import/blob/4c34886ecfbaa12426a9d3e09f9d1f80888652b2/README.rst

这是你正在寻找的吗?来自here

的提示

或者对原始文件内容感兴趣:

https://raw.githubusercontent.com/drathier/stack-overflow-import/4c34886ecfbaa12426a9d3e09f9d1f80888652b2/README.rst

至于 git 网址:

  

Git does not support downloading parts of the repository.

请参阅链接的答案,了解使用Wget或cURL与上面链接的http网址