---
title: "Save changes with a direct commit | Grafana Labs"
description: "Commit dashboard changes directly to the main branch in GitHub."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Save changes with a direct commit

Saving dashboard changes with a direct commit pushes modifications immediately to the main branch in GitHub. This workflow suits quick updates, trusted changes, or environments where dashboard modifications don’t require team review before deployment.

To save changes with a direct commit, complete the following steps:

1. With the dashboard in edit mode and changes made, click **Save dashboard**.
2. In the **Provisioned dashboard** panel, review the save options.
   
   Git Sync displays options for updating default values, specifying the file path, choosing the workflow, and adding a commit message.
3. Optionally, check **Update default refresh value** to make the current refresh interval the new default.
4. Optionally, check **Update default variable values** to make the current variable values the new defaults.
5. In the **Path** field, confirm or modify the file path in the repository. The path typically remains the same as when you first saved the dashboard, for example `dashboards/http-monitoring.json`.
6. For **Workflow**, select **Push to main**. This commits changes directly to the main branch without creating a pull request.
7. In the **Comment** field, enter a commit message describing your changes.
   
   For example, enter `Add error rate visualization to HTTP monitoring dashboard`.
8. Click **Save**.

The dashboard changes are committed to the main branch in GitHub. Git Sync creates a commit with your message and pushes it to the repository. The dashboard is updated in both Grafana and GitHub.

In the next milestone, you’ll learn how to save changes using a pull request workflow.
