How to reference a file in a GitHub issue?

Justin picture Justin · May 14, 2013 · Viewed 30.4k times · Source

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

Answer

Steven Penny picture Steven Penny · May 14, 2013

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