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 week ago

Connecting a Salto environment with a Git branch offers several advantages:

  • Documentation: Ensure all configuration changes are recorded and easily traceable. This can assist identifying changes during audit processes.

  • Integrate with Ticketing Systems: Link changes directly to business requirement tickets for enhanced tracking and accountability.

  • Collaboration: Improve teamwork and code quality through pull requests (PRs) and peer reviews.

  • Automation: Leverage continuous integration (CI) jobs to automate testing and validation of changes before they are deployed

Supported Git Providers

Go to the specific Git provider help article to learn more about connecting to it.

Native Git integration does not support attaching pull requests with deployments records.

Connecting an Environment to a Git Branch

To connect an environment to a Git branch, follow these steps:

  1. Navigate to the Environment Settings

  2. Go to the ‘Version Control’ Section

  3. Click on ‘Connect Git’

  4. Define Your Git Usage:

  5. Authenticate with your Git provider

    1. If automatic push is enabled, you will be promoted to authenticate with shared Git credentials. These shared credentials will be used for pushing environment changes detected in fetch operations. Upon any other git operations such as creating, updating and merging a pull request, the user will be prompted to authenticate with his personal Git credentials.

    2. For the other push modes, 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’

👍🏻 Your environment is now connected to a Git branch. A Git widget will appear in the environment header, allowing you to navigate to the branch in your Git provider and manually push files in case auto push mode is not enabled.

Did this answer your question?