Skip to content

GitHub

On this page:

Loading...

Connecting GitHub allows you to work on your websites locally and have the changes sync to CloudCannon. File changes made on CloudCannon also get synced back to GitHub.

To connect a GitHub repository and start syncing files, follow these instructions:

Go to Site Settings / Source Syncing and click Connect next to GitHub.

Sync step of creating a site to add your files

This redirects you to GitHub. Enter your credentials to continue.

GitHub authentication screen

Give CloudCannon access to your GitHub Account by clicking Authorize application. You can also Grant Access to any GitHub Organizations you wish to use in CloudCannon.

GitHub connection screen

You’ll be redirected back to CloudCannon to pick a repository to connect. If you don’t have one for this website, create a new one in GitHub and refresh this page.

Note

A dialog box warns you if there are existing files in your site. The files will be replaced with the contents of the repository. Click Connect GitHub to continue or close the dialog to cancel the process.

GitHub is now connected. Changes you push to the Git repository are pulled in by CloudCannon. Any changes made on CloudCannon are automatically committed and pushed.

Site Settings / Source Syncing screen in CloudCannon

Adding a new GitHub Organization

GitHub Organizations do not provide access to third parties applications. You’ll need to manually allow access to sync GitHub Organization repositories with CloudCannon.

To allow access, open the settings for the Organization on GitHub and go to the Third-party access tab. Click on your own authorised applications under the No pending requests header.

GitHub Organization Settings

Click the Edit button next to CloudCannon.

GitHub Organization Settings

Click Grant Access. You should now be able to sync repositories owned by the GitHub Organization in CloudCannon.

On this page:

Loading...

Don’t miss the latest
CloudCannon news freshly delivered to your inbox