How to link to specific line number on github

后端 未结 7 655
滥情空心
滥情空心 2020-11-28 00:57

I know I can link to a specific line number on a file on a github repo (I\'m sure I\'ve seen this before)...

Can someone tell me how to do this?

相关标签:
7条回答
  • 2020-11-28 01:16

    Click the line number, and then copy and paste the link from the address bar. To select a range, click the number, and then shift click the later number.

    Alternatively, the links are a relatively simple format, just append #L<number> to the end for that specific line number, using the link to the file. Here's a link to the third line of the git repository's README:

    https://github.com/git/git/blob/master/README#L3

    Screenshot with highlighted line and the modified address line

    0 讨论(0)
提交回复
热议问题