Aller au contenu
EN English versionDemander une démo

Add a git repository's documentation to a knowledge base

For a project owner. Procedure source.git, version 1, reviewed 2026-10-16 against the vendor’s own pages. It applies to the knowledge source kind git.

It ships with the platform. In the console it opens with How to set this up, beside the form that adds the connector and on the connector’s settings.

Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.

  • The repository’s https address. A git:// or ssh address is refused.
  • A public repository needs no credential. A private one is read through a documents/git connector that an organisation administrator declared (see “Connect a private git repository as a documents source”): it holds the token or the GitHub App, and the repository must be on the connector’s host.
  • Choose what to follow: a branch is followed at each sync; a commit pins the content.

Nothing to create for a public repository.

The source makes one shallow fetch of the ref and reads files. It reads at most 500 files of 5 MiB each.

  1. Knowledge, the base, Add source, kind Git.
  2. For a private repository, name the connector. Then url, ref and paths (globs; the default is markdown anywhere).
  3. Choose the refresh. The cursor is the commit: the same commit is no change, and a file gone from the new commit is deleted from the base.
  4. The egress allowlist must open the git host.

Press Sync now and open the documents that were added.

  • “a git source is fetched over https”: the address is not https.
  • Nothing indexed: no file matches paths.
  • A fetch that fails: the ref does not exist, or the repository is private and no connector is named.
  • A timeout: the fetch is cut at 5 minutes; the egress allowlist may not open the host.
Field What to put in it
connector optional: a documents/git connector, for a private repository
paths glob patterns of the files to index, *.md by default
ref a branch (followed) or a commit (pinned), main by default
url the repository’s https address

Hosts the platform must be allowed to reach:

  • the git host