git fetch
new revisions.
If youâre not familiar with Sourcebot connections, please read that overview first.
Getting Started
Only folders containing git repositories at their root and have a
remote.origin.url
set in their git config are supported at this time. All other folders will be skipped.repos
directory located at $(PWD)
with a collection of git repositories:
1
Mount a volume
We need to mount a docker volume to the
repos
directory so Sourcebot can read itâs contents. Sourcebot will not write to local repositories, so we can mount a separate read-only volume:2
Create a connection
We can now create a new git connection, specifying local paths with the Sourcebot will expand this glob pattern into paths
file://
prefix. Glob patterns are supported. For example:/repos/repo_1
, /repos/repo_2
, etc. and index all valid git repositories.Examples
Sync individual repo
Sync individual repo
Sync multiple repos using glob patterns
Sync multiple repos using glob patterns
Schema reference
Reference
Reference