You can link to file, but not to folders, and keep in mind that, Github will add /blob/master/
before your relative link(and folders lacks that part so they cannot be linked, neither with HTML tags or Markdown link).
So, if we have a file in myrepo/src/Test.java
, it will have a url like:
https://github.com/WesternGun/myrepo/blob/master/src/Test.java
And to link it in the readme file, we can use:
[This is a link](src/Test.java)
or: This is a link
.
(I guess, master
represents the master
branch and it differs when the file is in another branch.)