Is there a short syntax to add a link to a file on the current repository within a commit message?

Viewed 276

GitHub has a syntax to add a link to a specific commit using its hash like bec0001 that can be used on a commit message. Is there a syntax to add a link to a file on the same repository? Something like:

Cool commit

Doing something useful. See also file /package.json

Couldn't find anything in the docs: https://docs.github.com/en/github/writing-on-github/autolinked-references-and-urls

Also tried Relative link with ../blob/master/ and it didn't work on the commit message (only on the comments): /package.json

1 Answers
Related