返回 Skill 列表
extension
分类: 开发与工程无需 API Key

path-reference

在git仓库中正确格式化引用路径(文件或文件夹)。当编写需要链接到仓库中任何路径的文档时使用。

person作者: jakexiaohubgithub

path-reference

Create clickable links to paths in a git repository.

Commands

Get web URL (always use -b default for stable links):

uvx --from git-web-url==1.0.1 gwu url -p $path -b default

Get relative path (for display text):

uvx --from git-web-url==1.0.1 gwu relpath -p $path

Link Formats

Markdown:

[relative/path/to/file.py](https://github.com/user/repo/blob/main/relative/path/to/file.py)

reStructuredText:

`relative/path/to/file.py <https://github.com/user/repo/blob/main/relative/path/to/file.py>`_

Supported Platforms

GitHub, GitLab, Bitbucket, AWS CodeCommit (including enterprise variants)