sourcebot/docs/docs/connections/generic-git-host.mdx
Brendan Kellam 2b0dac4782
feat: Ask Sourcebot (#392)
Co-authored-by: msukkari <michael.sukkarieh@mail.mcgill.ca>
2025-07-23 11:25:15 -07:00

32 lines
No EOL
967 B
Text

---
title: Other Git hosts
icon: git-alt
---
import GenericGitHost from '/snippets/schemas/v3/genericGitHost.schema.mdx'
Sourcebot can sync code from any Git host (by clone url). This is helpful when you want to search code that not in a [supported code host](/docs/connections/overview#supported-code-hosts).
If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
## Getting Started
To connect to a Git host, create a new [connection](/docs/connections/overview) with type `git` and specify the clone url in the `url` property. For example:
```json
{
"type": "git",
"url": "https://github.com/sourcebot-dev/sourcebot"
}
```
Note that only `http` & `https` URLs are supported at this time.
## Schema reference
<Accordion title="Reference">
[schemas/v3/genericGitHost.json](https://github.com/sourcebot-dev/sourcebot/blob/main/schemas/v3/genericGitHost.json)
<GenericGitHost />
</Accordion>