How to reference a file in a GitHub issue?

GithubGithub Flavored-Markdown

Github Problem Overview


In GitHub issues, can I reference a file in the repository directly in the issue and have it auto-link?

Github Solutions


Solution 1 - Github

You cannot auto-link to a file, only commits and issues.

Side note, it is better to use a hash when linking to make it “future proof”. Example:

http://github.com/antirez/redis/blob/3244d8b/MANIFESTO

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJustinView Question on Stackoverflow
Solution 1 - GithubZomboView Answer on Stackoverflow