Our beloved Confluence app Live Snippets has gotten a neat update and has been renamed to Git Snippets! In addition to Bitbucket Server, you can now embed code from Github.

Simply browse to the file you want to include in a Confluence page on github.com, select the lines and copy the URL.


Then paste the URL into the Git snippet macro and voilà, the snippet is now shown on a confluence page.


It’s as simple as that! The only thing you have to do as a Confluence administrator is to create a personal access token in Github.

For users to be able to include code from Github, the Git Snippets macro will need a personal access token in order to make requests and the code from Github. You can create the token with a Github account here: https://github.com/settings/tokens

Then add the token unter Confluence Administration → Git Snippets Settings and you are good to go!


Where to go?