> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Git Credentials

> Connect Ankra to GitHub and other Git providers for GitOps configuration sync.

Git credentials let Ankra read and write the repository that holds your GitOps configuration. GitHub is connected through the Ankra GitHub App (OAuth), so there are no long-lived tokens for you to store or rotate.

## Connecting GitHub

GitHub is connected through the Ankra GitHub integration rather than a manually stored token. See the [GitHub integration guide](/integrations/github) for the full setup, including installing the GitHub App and selecting repositories.

Once connected, Ankra automatically uses the connection when syncing configurations to your GitHub repository - no credential needs to be selected per cluster.

## Other Git providers

For GitLab and other Git providers, connect the repository when wiring up [GitOps](/concepts/gitops). Ankra stores the access securely and uses it only to sync your configuration.

## Related

<CardGroup cols={2}>
  <Card title="GitHub integration" icon="github" href="/integrations/github">
    Install the GitHub App and select repositories.
  </Card>

  <Card title="GitOps" icon="code-branch" href="/concepts/gitops">
    How Ankra keeps Git as the source of truth.
  </Card>
</CardGroup>
