# How it works GitHub for Confluence lets you put a file from a GitHub repository straight onto a Confluence page, where it renders live: code with syntax highlighting, Markdown as formatted text, diagrams as pictures, and images inline. It comes with one macro, "Github file (Capable)", which you add either from Confluence's macro browser or simply by pasting a GitHub file link into the editor. Each person connects their own GitHub account, so people only ever see repositories they personally have access to. Public files need no connection at all and are visible to everyone, including logged-out readers. The --- ## In this section [Page byline: "Github (Capable)"A byline item on the page, tooltip "Add files from GitHub", that lists the GitHub files on the page and shows a count badge ("1 file" / "N files"). Clicking through links out to github.com/{owner}/{repo}/blob/{branch}/{path}.](https://help.gocapable.com/git/page-byline-github-capable.html)[Capable → Github catalogue pageA section in the Capable app, titled "Github", subtitled "Add files from GitHub repositories to pages", order 50\. It has FOUR groups: Getting started (dismissable), "All files" browse view, a Browse-by-file-type heading with 8 sub-sections](https://help.gocapable.com/git/capable-github-catalogue-page.html)[Capable Search integrationTwo sort options (Git Last Updated, Git File Count), four grid columns (Files, Repositories, Organizations, File Types), four filters (Minimum Files, Repository, Organization, File Type), a "Github" page panel subtitled "Github files refere](https://help.gocapable.com/git/capable-search-integration.html)[Auto-convert pasted GitHub linksPaste a GitHub blob or raw file URL into the editor and it becomes the macro, with repository, path and branch taken from the URL.](https://help.gocapable.com/git/auto-convert-pasted-github-links.html)[Multiple GitHub accounts per personOne person can link several GitHub accounts (for example work and personal). Repositories from all connected accounts are merged and de-duplicated in the picker, and when a file cannot be read with one account the macro automatically retrie](https://help.gocapable.com/git/multiple-github-accounts-per-person.html)[In-product help catalogA "Git for Confluence" help catalog is wired into the product, described as "Bring your Git content to Confluence pages with secure, per-user access." It points at https://help.gocapable.com/confluence-git/ and links nine articles: Insert C](https://help.gocapable.com/git/in-product-help-catalog.html) --- ## Related [MacrosThe macros themselves.](https://help.gocapable.com/git/macros.html) [AdministrationWhat an admin controls.](https://help.gocapable.com/git/administration.html) [TroubleshootingWhen it does not.](https://help.gocapable.com/git/troubleshooting.html) --- _How it actually behaves._