Coregit
Git Protocol

Git Smart HTTP

Use standard Git commands with Coregit repositories.

Overview

Coregit implements the Git Smart HTTP protocol, so you can use any standard Git client to clone, fetch, and push.

Repository URL Format

https://{org-slug}:{api-key}@api.coregit.dev/{org-slug}/{repo-slug}.git

Supported Operations

OperationAuth RequiredCommand
Clone (public)Nogit clone https://api.coregit.dev/org/repo.git
Clone (private)Yesgit clone https://org:KEY@api.coregit.dev/org/repo.git
FetchSame as clonegit fetch origin
PushAlwaysgit push origin main

Endpoints

The Git protocol uses two endpoints under the hood:

  • GET /:org/:repo.git/info/refs?service=git-upload-pack — Ref advertisement (clone/fetch)
  • POST /:org/:repo.git/git-upload-pack — Pack data transfer (clone/fetch)
  • GET /:org/:repo.git/info/refs?service=git-receive-pack — Ref advertisement (push)
  • POST /:org/:repo.git/git-receive-pack — Pack data transfer (push)

On this page