Git for Confluence allows you to share public and private files on your Confluence pages. Sharing private files on your behalf will make it possible to share private content from your git provider with a Confluence page.
Public file
This is a public resource in Github. Try to press the link in the header of the macro on you’ll see that you can publicly access this resource on Github as well.
Private file
This resource is shared from a private repository in Github. Normally you wouldn’t be able to access this resource as it is private.
The following will happen if you try to include a private file without granting access to it.