Sandbox.page allows you to integrate with Git – the most popular source code management system used by many web developers. You can manage Git repositories and automatically deploy websites from such repositories to a target public directory. In other words, you can use Git as a transport for initial publishing and further updates.
Note: This feature is not supported in Snadbox.page installations running on Windows Server 2008.
To work with Git, you need the following:
- The Git extension installed in Sandbox.page.
- A domain should be created in Sandbox.page with a service plan granting the Git management permission.
In Sandbox.page, you can add Git repositories of two types depending on the usage scenario:
- Using a local repository on your workstation. In this case, you send the changes from your local repository to Sandbox.page, and then Sandbox.page deploys the changes to your website. Refer to Using local repository.
- Using remote Git hosting. This scenario may be useful if you already work with a remote repository in GitHub (github.com) or BitBucket (bitbucket.org). You send the changes to the remote repository, and then Sandbox.page pulls them from the remote repository and deploys them to your website. Refer to Using remote Git hosting.
When you have Git repositories enabled in your domain, a list of created repositories is displayed on the domain’s page. For each repository, the name, the current branch and the deployment path are displayed. The Deploy button near the repository name allows you to deploy the files from a repository (if manual deployment is configured) and the Pull Updates button allows you to pull the changes from the remote repository.
Note: Currently, Sandbox.page-hosted Git repositories are protected with the FTP user’s password. Anonymous access cannot be used.
The Git link allows you to manage the domain’s Git repositories.