Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph & Cody CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Technical changelog
    • Releases
  1. Docs
  2. cli
  3. references
  4. serve-git

src serve-git

Flags

NameDescriptionDefault Value
-addrAddress on which to serve (end with : for unused port):3434
-listlist found repository namesfalse

Usage

SHELL
'src serve-git' serves your local git repositories over HTTP for Sourcegraph to pull. USAGE src [-v] serve-git [-list] [-addr :3434] [path/to/dir] By default 'src serve-git' will recursively serve your current directory on the address ':3434'. 'src serve-git -list' will not start up the server. Instead it will write to stdout a list of repository names it would serve. Read Documentation here https://sourcegraph.com/docs/admin/code_host_connection/src_serve_git

On this page

  1. `src serve-git`

    1. Flags
    1. Usage

Edit this page on GitHub
Questions? Give us feedback