Creating a permanent link to a code snippet - GitHub Docs
Then, hover over the last line of the code range, press Shift, and click the line number to highlight the range. To the left of the line or range of lines, click . In the drop-down menu, click Copy permalink . Navigate to the conversation where you want to link to the code snippet. Paste your permalink into a comment, and click Comment .