docs/sources/as-code/observability-as-code/git-sync/git-sync-setup/set-up-before.md
{{< admonition type="caution" >}}
Git Sync is now GA for Grafana Cloud, OSS and Enterprise. Refer to Usage and performance limitations to understand usage limits for the different tiers.
Contact Grafana for support or to report any issues you encounter and help us improve this feature.
{{< /admonition >}}
Before you begin to set up Git Sync, ensure you have the following:
Moreover, make sure you're not blocking any of the Grafana services IPs. For a list of IPs you need to add to your allowlist, refer to Hosted Grafana source IPs.
Finally, get acquainted with the following topics:
The provisioning feature toggle is enabled by default in Grafana Cloud and, starting in Grafana v13, for OSS and Enterprise as well. No manual configuration is required.
For more information about feature toggles, refer to Configure feature toggles.
If you're using Grafana Enterprise v12.4.0 and want to set up Git Sync with pure Git, GitLab or Bitbucket, or if you're using Grafana OSS v12.4.0 and want to set up Git Sync with pure Git, add them to your configuration file:
Open your Grafana configuration file, either grafana.ini or custom.ini.
Add the available providers:
[provisioning]
repository_types = "git|github|bitbucket|gitlab|local"
Save the changes to the file and restart Grafana.
GitHub Apps are tools that extend GitHub functionality. They use fine-grained permissions and short-lived tokens, giving you more control over which repositories are being accessed. Find out more in the GitHub Apps official documentation.
If you chose to authenticate with a newly created GitHub App, you'll need the following parameters:
There are many ways to create a GitHub App. The following instructions are informative only, always refer to official GitHub documentation for more details.
To create the GitHub App, follow these steps:
On the app page:
Finally, install the app:
installationID from the page URL https://github.com/settings/installations/installationIDYou can now proceed to Set up Git Sync!
By default, folders provisioned with Git Sync have these roles:
To modify them, refer to Manage folder permissions.
Refer to Roles and permissions for more information about Grafana roles.