cPanel Git deployment can move repository content into a production directory after code is committed.
Deployment requires a valid .cpanel.yml file checked into the top level of the repository. The file defines the deployment tasks that cPanel runs.
- Push deployment can automatically deploy when changes are pushed to the cPanel-managed repository.
- Pull/manual deployment retrieves changes from a remote repository and then uses Deploy HEAD Commit from the Git Version Control interface.
Review deployment paths carefully so a task does not overwrite unrelated production files.