The first step in deploying an SAP Commerce Cloud site to the public cloud is to establish a connection to the code repository.
SAP Commerce Cloud supports three types of public Git-based code repositories:
- GitHub
- GitLab
- Bitbucket
When you select the Repository link, it will take you to the Repository Configuration page.

On the Repository Configuration page, you have the choice to configure the connection using either the HTTP or SSH protocol. SAP Commerce Cloud will then retrieve the code from your repository via the selected protocol:
- If you choose the SSH protocol, SAP Commerce Cloud automatically generates a public key. You’ll need to copy this key and paste it in your code repository, usually found under the SSH and GPG keys tab within the Settings page. You'll view the demonstration of this process shortly.
- If you select HTTP protocol, you need to create a personal access token from your code repository. This is typically located within the Personal access tokens tab under Developer settings page.
As you may have noticed, the repository configuration applies to all three environments (Development, Staging, and Production) within the Cloud Portal. Be careful if you’re using different repositories for various environments because it’s not possible to maintain separate configurations for each individual environment.
Please note: You can also use a custom private code repository and set up a VPN or NAT connection between your private network and SAP Commerce Cloud. For more information, refer to the section of External Code Repositories.