Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

git

Use git commands to manage the GitHub repository connection. Connecting enables the OIDC credential exchange for GitHub Actions deploys and the branch lifecycle automation. See GitHub integration and Deploy on push.

bunx prisma git connect
Bash
pnpm prisma git connect
Bash
yarn prisma git connect
Bash
npx prisma git connect

Run it from a linked project directory. The command needs an interactive terminal: it opens the browser to install the GitHub App when needed and waits for the install. With --no-interactive it fails with CLI.INTERACTION_REQUIRED. Connecting from the CLI does not add a deploy workflow to the repository. Add it yourself, or connect through the Console, which opens a pull request with the workflow.

Run it from a linked project directory. The command needs an interactive terminal: it opens the browser to install the GitHub App when needed and waits for the install. With --no-interactive it fails with CLI.INTERACTION_REQUIRED. Connecting from the CLI does not add a deploy workflow to the repository. Add it yourself, or connect through the Console, which opens a pull request with the workflow.

Command Description
git connect [git-url] Connect the linked project to a GitHub repository. Starts the GitHub App install flow if needed
git disconnect Stop the credential exchange and branch automation. Keeps the project and existing branches
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu