Links an Alpic project to a GitHub remote repository. Once connected, you can install the Alpic GitHub App to trigger automatic deployments on every push.
The directory must already be linked to an Alpic project (via alpic deploy) and must be a git repository with at
least one GitHub remote configured.
Usage
Detects GitHub remotes in the current directory and prompts to select one.
Extended Usage
# Connect a project in a specific directory
alpic git connect ./my-app
# Auto-select the only available remote without prompting
alpic git connect --yes
# Connect using a specific named remote
alpic git connect --remote-name origin
Options
| Flag | Short | Description | Default |
|---|
--yes | -y | Automatically select the remote when only one is available | false |
--remote-name | | Name of the remote to connect | |
Positional arguments
| Argument | Required | Description |
|---|
directory | No | Directory to connect (defaults to current directory) |