Skip to main content
All CollectionsIntegrating Git and CI/CD
Connecting an Environment to a Git Branch
Connecting an Environment to a Git Branch
Support avatar
Written by Support
Updated over a month ago

Integrating your Salto environment with a Git branch enables version control and collaboration for your application configuration. Before setting up the connection, consider the following authentication and permission requirements:


Shared Git User for Automatic Pushes

All configuration changes deployed through Salto, or done directly in the environment and fetched by Salto, will be pushed to this branch.
You will need to provide a shared Git account. Salto will use this account to push all fetched changes to the git branch, so it must have the necessary permissions to push commits.

In this mode, the environment branch is exclusively managed by Salto. Application configuration updates to this branch are handled solely through Salto fetches and deployments.

For changes to files like CSVs, READMEs, CI files, or similar, you can submit a pull request through the Version Control section on the Environment Settings page in the Salto UI. Learn more

To keep everything running smoothly, please avoid making direct changes to the branch outside of Salto.

Alternatively, you can enable manual push mode. In this mode, automatic pushes will not occur, and protection via PRs will not be available.

Personal Git Credentials for Deployments

Each team member deploying to this environment must authenticate using their personal Git credentials.

  • If deployment pull requests are enabled, the user must have permission to create and update PRs for the environment branch, as well as squash and merge them.

  • If PRs are not enabled, the user must have direct push permissions for the environment branch.

More information per supported Git provider:

Setting Up a Git Connection

  1. Navigate to the Environment Settings

  2. Go to the ‘Version Control’ Section

  3. Click on ‘Connect Git’


  4. Define Your Git Usage:

    • Choose your preferred push settings:

      • Automatically push every change (recommended)

      • Manually select and push changes

    • Enable deployment protection via pull requests. Learn more.

    • Enable SFDX integration to manage your configuration in Git using the SFDX project format (salesforce only)

  5. You will be promoted to authenticate with shared Git credentials.
    (If manual push mode is enabled, you will be prompted to authenticate with your personal Git credentials).


  6. Select a repository and click ‘Next’

  7. Select or Create a branch and click ‘Select/Create Branch and Link’

Did this answer your question?