How to link to specific line number on github

后端 未结 7 698
滥情空心
滥情空心 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:13

    Many editors (but also see the Commands section below) support linking to a file's line number or range on GitHub or BitBucket (or others). Here's a short list:

    Atom

    Open on GitHub

    Emacs

    git-link

    Sublime Text

    GitLink

    Vim

    gitlink-vim


    Commands

    • git-link - Git subcommand for getting a repo-browser link to a git object
    • ghwd - Open the github URL that matches your shell's current branch and working directory

提交回复
热议问题