Add repositories (from code hosts) to Sourcegraph
- Add repositories from a code host (GitHub, GitLab, Bitbucket Server, Bitbucket Data Center, AWS CodeCommit, Phabricator, or Gitolite)
- Add repositories by Git clone URLs
- Add repositories from non-Git code hosts
- Pre-load repositories from the local disk
Troubleshooting
If your repositories are not showing up, check the site admin Repositories page on Sourcegraph (and ensure you're logged in as an admin). If nothing informative is visible there, check for error messages related to communication with your code host's API in the logs from:
- Docker Compose and Kubernetes: the logs from the
repo-updater
container/pod - Single-container: the
sourcegraph/server
Docker container
If your repositories are showing up but are not cloning or updating from the original Git repository:
- Go to the repository's Mirroring settings page and inspect the Check connection logs.