docs/sources/as-code/observability-as-code/git-sync/provisioned-dashboards.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 >}}
Using provisioning, you can choose to store your dashboard JSON files in either GitHub repositories using Git Sync or a local path, and manage them through the Grafana interface. Dashboards and folders synchronized using Git Sync or a local path are referred to as provisioned resources. For more information, refer to the Dashboards documentation.
Git Sync is the recommended method for provisioning your dashboards. You can synchronize any new dashboards and changes to existing dashboards to your configured GitHub repository. If you push a change in the repository, those changes are mirrored in your Grafana instance. Refer to Set up file provisioning to learn more about the version of local file provisioning in Grafana 12.
Using Git Sync, you can manage your dashboards in the UI and synchronize them with a GitHub repository. Refer to How it works for more details.
main branch.
To learn more about Git, refer to Getting Started - About Version Control of the Pro Git book in the official Git documentation.
{{< admonition type="note" >}}
If you want to add an existing dashboard to your provisioned resources, refer to Export non-provisioned resources from Grafana.
{{< /admonition >}}
You have two options for creating new dashboards or folders in Git Sync:
When you create a new dashboard in a provisioned folder associated with a GitHub repository, you follow the same process you use for any new dashboard. Refer to Create a dashboard for more information.
After you create the dashboard, follow these steps:
When you edit a provisioned resource, you're prompted to save or discard those changes. Saving changes requires opening a pull request in your GitHub repository.
To save dashboard changes:
Select Edit to update a provisioned dashboard. Make your desired changes.
Click Save dashboard.
On the Provisioned dashboard panel, choose the options you want to use:
Optional: Select the Changes tab to view the differences between the updates you made and the original resource.
Select Save.
If you chose Push to a new branch, select Open a pull request in GitHub to open a new PR to your repository. GitHub opens with your dashboard's code as the contents of the PR.
Follow your usual GitHub workflow to save and merge the PR to your repository.
You can remove a provisioned dashboard by deleting the dashboard from the repository. The Grafana UI updates when the changes from the GitHub repository sync.
To restore a deleted dashboard, raise a PR directly in your GitHub repository. Restoring resources from the UI isn't possible at the moment.
Follow these recommendations when working with provisioned dashboards: