Only users with Admin privileges can configure Git providers and manage
repositories. If you need to connect repositories, contact your organization
administrator.
Supported Git Providers
Packmind supports GitHub and GitLab. You add and manage connections from Settings → Git Providers, on the Connections tab. Click Add connection to open the connection panel. For GitHub, you can authenticate with the GitHub App (recommended) or a personal access token. GitLab connections use a personal access token.Connecting GitHub
GitHub App (recommended)
The GitHub App is the recommended way to connect GitHub repositories:- Scoped access — you choose exactly which organizations and repositories Packmind can reach. Nothing else is visible to Packmind.
- Automatic credential rotation — Packmind refreshes its access on its own, so there’s no token to create, store, or renew.
On Packmind Cloud
- Go to Settings → Git and click Add connection.
- Select GitHub as the vendor.
- (Optional) Enter a display name to identify this connection later.
- Under Authentication, click Install Packmind on GitHub.
- On GitHub, choose the organizations and repositories you want to grant access to, then confirm.
- You’re returned to Packmind automatically, and the connection is ready to use.
On self-hosted Packmind
The first time you connect, you register a Packmind GitHub App for your organization. This is a one-time setup — every later GitHub connection reuses it.- Go to Settings → Git and click Add connection.
- Select GitHub.
- Under Authentication, click Register the Packmind GitHub App. GitHub opens so you can create the app for your organization, then returns you to Packmind automatically.
- Once the app is registered, click Install Packmind on GitHub.
- On GitHub, choose the organizations and repositories to grant access to, then confirm.
- You’re returned to Packmind automatically, and the connection is ready to use.
After the app is registered, every new GitHub connection in your organization
reuses it — you only register once. To remove the registration, use Revoke
registration. This is only available once no connections are still using the
app, so delete those connections from the Connections tab first.
Personal access token
If you can’t use the GitHub App, you can connect with a personal access token instead. In the Add connection panel, choose Use a personal access token instead, then:- Go to GitHub Settings → Developer settings → Personal access tokens.
- Click Generate new token (classic).
- Permissions must include Contents: read/write (or the
reposcope for classic tokens). - Copy your token (it starts with
ghp_orgithub_pat_) and paste it into Packmind.
Personal access tokens don’t rotate automatically — you’ll need to renew them
before they expire. Prefer the GitHub App when you can.
Connecting GitLab
GitLab connections use a personal access token:- Go to GitLab User Settings → Access Tokens.
- Create a new token with the
apiscope (full API access). - Copy your token (it starts with
glpat-) and paste it into Packmind.
Managing Repository Access
To change which repositories a GitHub App connection can reach, open the connection from the Connections tab and use View Packmind on GitHub. This opens the Packmind app’s page on GitHub, where you can add or remove repositories. The new access takes effect in Packmind without reconnecting.Adding Repositories
Once you’ve added your providers, add repositories for each provider. When you add a Git repository, Packmind automatically creates a default target with the root path ”/” for that repository. This allows you to immediately start distributing standards and commands to the entire repository. You can later create additional targets for specific paths within the repository if needed.Distribution Targets
Before distributing your standards and commands, you can configure targets in Settings → Distribution → Targets. A target defines a specific path within your Git repository where standards and commands will be distributed. Targets are particularly useful in monorepo environments where you want to apply different standards to different parts of your codebase. For example:/frontend/- Apply frontend-specific standards to your React components/apps/api/- Distribute backend standards to your API code/packages/shared/- Apply shared library standards to common utilities/(Created by default when you add a Git Repo)