Markdown Tags and Tips - GitLeeRepo/GitInfo GitHub Wiki
References
Tip - Internal heading links (bookmark anchors)
To link internally to the "## Git remote branch commands" h2 heading enter:
- [Remote branch commands](#git-remote-branch-commands)
Note that even though it is an h2 heading with two ##, the link only includes one #, with the space removed after it. All subsequent spaces are replaced with hyphens, and all uppercase letters are converted to lowercase. An easy way to get this right is to look at the rendered markdown file on GitHub and click on the link icon to the left of the heading you want to link to. This will open the page in your browser at that heading where you can copy the bookmark name from the address bar.