{{define "content" -}}

~{{.Repo.OwnerName}}/{{.Repo.Name}} {{template "visibilityBadge" .Repo.Visibility}}

{{if .Repo.Description}}

{{.Repo.Description}}

{{end}} {{template "viewtabs" (dict "Repo" .Repo "Views" .Views "Current" "overview" "Ref" .DefaultBranch)}} {{if .Empty}}

Push to get started

This database has no commits yet, so there is nothing to clone — push something and that push becomes its history. A database you already have works as well as a fresh one: its own commits land here unchanged, with no --force anywhere.

dolt init   # skip in a database you already have
dolt remote add origin {{.CloneURL}}
dolt push origin main

Authenticate with a meta.sr.ht personal access token (Basic auth):

export DOLT_REMOTE_PASSWORD=<your meta access token>
dolt push --user {{.Repo.OwnerName}} origin main

Or, associate a dolt key once and push with no credentials (like a git SSH key):

dolt creds new
dolt login --auth-endpoint {{doltHost .SelfOrigin}} --login-url {{.SelfOrigin}}/settings/keys
dolt push origin main
{{else}}

Clone

With a meta.sr.ht personal access token (Basic auth):

export DOLT_REMOTE_PASSWORD=<your meta access token>
dolt clone --user {{.Repo.OwnerName}} {{.CloneURL}}

Or, associate a dolt key once and clone with no credentials (like a git SSH key):

dolt creds new
dolt login --auth-endpoint {{doltHost .SelfOrigin}} --login-url {{.SelfOrigin}}/settings/keys
dolt clone {{.CloneURL}}

{{icon "code-branch"}} Branches

{{if .Branches}} {{else}}

No branches.

{{end}}

{{icon "clock"}} Recent commits

{{if .BrowseFailed}}
Could not read history.
{{end}} {{if .Commits}} {{range .Commits}} {{end}}
{{.Hash | shortsha}} {{.Message}} {{.Author}} {{.Date | reltime}}
Full log → {{else}}

No commits.

{{end}}
{{end}} {{- end}}