Disable git syncing
If you've enabled Git Syncing, disable it:
- In your
- In the Settings > Advanced tab in Retool, remove the repository URL and branch name from your Git Syncing configuration.
This guide requires access to an Azure DevOps account with permissions to create repos and access tokens.
1. Create a new repository in Azure Repos
- Create or use an existing project under Azure Repos.
- Create a new Git repository under Azure Repos for your Retool apps. Ensure that it has a
README.mdfile at the root level directory.
2. Create a personal access token
- Create an Azure Repos personal access token.
- Under the Code section, check Full and Status. With this token, Retool will be able to programatically manipulate your repository, generate pull requests, and see their statuses. Accordingly, use the most appropriate admin in your organization to generate it.
3. Set up environment variables on your Retool instance
Set the following environment variables on your Retool instance on the
|The Azure Repos username||retool|
|The personal access token generated previously||mpoqd2zy7jklzfbhmuzev46vbbcpkeeqminb4wcvwigsrldasdfa|
|The Azure DevOps organization||acme-co|
|The new or existing Azure DevOps project from step 1||proj-retool|
|The repo name from step 1||retool|
|Retool automatically tracks changes to this branch||main|
If you use your own SSL certificates, set the
NODE_EXTRA_CA_CERTS environment variables on the
api containers to the path to your SSL certificate.
4. Test your configuration
After you set up your environment variables, if you’re an admin on your Retool instance, you can visit Settings > Source Control.
If your Azure Repos environment is correctly configured, the page will show your Azure Repos commits in the Deployment Dashboard section. You can also click the Test connection button, which sends a request to test the connection.
If you don't see the Deployment Dashboard and your Azure Repos commits on Settings > Source Control, check that your environment variables are correctly configured.
You are now ready to use source control. Learn how to create branches and pull requests, merge changes, and use other source control features in the getting started guide.