Git repositories and deployment
On newer servers open Advanced Features → Git. Create Repository prepares a repository managed by the hosting account.
Older CloudLinux servers have no separate Git item. Git can be used through SSH or Web Terminal only when command access is enabled for the main account.
Safe deployment
- Back up the current website and database.
- Do not expose the
.gitdirectory to the web. - Never commit passwords, API keys or a production
.envfile. - Check document root, permissions and dependencies.
- Enable automated deployment only after a successful manual test.
For a private remote repository, use a dedicated deploy key with minimum permissions.