NexHost Git
Create, clone, and connect a NexHost-hosted Git repository to a service.
NexHost Git#
NexHost Git provides hosted repositories that can be selected as a service source. Repository access is managed through the dashboard and the Next CLI.
Create a repository#
Open Dashboard → Repositories and create a repository in the intended workspace. Choose its visibility and copy the clone information presented by the dashboard.
You can also create a repository from the CLI:
next login --team YOUR_WORKSPACE
next repo create my-service --privatePush source#
next clone YOUR_WORKSPACE/my-service
cd my-service
next add .
next commit -m "Initial service"
next pushUse next doctor if authentication or the local Git configuration is not ready. The CLI keeps credentials out of repository remote URLs.
Connect it to a service#
During New Project, choose NexHost Git as the source when it is offered, select the repository and branch, then review the service’s build, start, or publish settings. A source push does not by itself change a live release; start or configure the service deployment from the dashboard.