# Gothab Documentation

Gothab provides collaborative source-code hosting and development tools.

This documentation explains how to use Gothab, from creating your first repository and authenticating the `gt` CLI to configuring workflows, integrations, and repository policies.

## Getting Started

- [Creating a Repository](https://gothab.io/docs/guides/creating-a-repo.md) — your first repo
- [Authentication](https://gothab.io/docs/guides/authentication.md) — accounts, SSH keys, and access tokens

## Core Features

- [Pull Requests](https://gothab.io/docs/guides/pull-requests.md) — code review, merge strategies, auto-merge, conflict resolution
- [Repositories](https://gothab.io/docs/guides/creating-a-repo.md) — creation, forking, file editing, settings
- [Issues](https://gothab.io/docs/guides/issues.md) — issue tracking with labels and states
- [Requirements](https://gothab.io/docs/guides/requirements.md) — tree-structured requirements with versioning and issue linking
- [CI/CD Workflows](https://gothab.io/docs/ci/workflows.md) — automated builds and tests
- [Code Health](https://gothab.io/docs/ci/code-health.md) — duplicated code, complex functions, unused symbols and massive files, via `gothab/analyze`
- [Gothab Pages](https://gothab.io/docs/guides/pages.md) — publish a static website from a repository with Gothab CI
- [Performance Profiles](https://gothab.io/docs/ci/performance-profiles.md) — repeatable benchmarks with typed measurements and contracts
- [Code Search](https://gothab.io/docs/reference/code-search.md) — full-text and symbol search across your codebase
- [Model and Dataset Hub](https://gothab.io/docs/guides/model-dataset-hub.md) — discover model and dataset repositories
- [Importing from Hugging Face](https://gothab.io/docs/guides/hugging-face-imports.md) — create a native repository from one public revision
- [Hugging Face Mirroring](https://gothab.io/docs/guides/hugging-face-mirroring.md) — continuously synchronize repositories you administer
- [Hugging Face-compatible API](https://gothab.io/docs/reference/hugging-face-api.md) — use supported `huggingface_hub` read operations
- [gt CLI Reference](https://gothab.io/docs/reference/cli/index.md) — generated reference for every command, subcommand, argument, and option
- [Webhooks](https://gothab.io/docs/reference/webhooks.md) — integrate with external services
- [Platform Limits](https://gothab.io/docs/reference/limits.md) — upload, repository, CI, package, search, and API limits
- [Tool Configuration Files](https://gothab.io/docs/reference/tool-config.md) — choose which paths code health and other tools analyse with `.gothab/<tool>.toml`

## Administration

- [Branch Protection](https://gothab.io/docs/reference/branch-protection.md) — enforce quality gates on merges, branch naming rules
- [Package Attestation Policies](https://gothab.io/docs/reference/package-attestations.md) — require human review of dependency versions before installs can pull them
- [Package Provenance](https://gothab.io/docs/reference/package-provenance.md) — verify where a package file was built, with `gt` or stock cosign
- [Repository Properties](https://gothab.io/docs/reference/repository-properties.md) — typed values on repositories, and selecting the repositories that get a secret or variable by them

## API

- [API Overview](https://gothab.io/docs/reference/api.md) — REST API reference
- [GitHub REST API compatibility preview](https://gothab.io/docs/reference/github-rest-api-preview.md) — supported read-only GitHub-shaped REST operations and preview contract
- [Markdown for LLMs and Tools](https://gothab.io/docs/reference/markdown.md) — `/llms.txt` and the markdown versions of these pages and public repositories

## All documentation pages

- [Code Health](https://gothab.io/docs/ci/code-health.md): Analyse a repository for duplicated code, complex functions, unused symbols and oversized files with the gothab/analyze CI action.
- [Performance Profiles](https://gothab.io/docs/ci/performance-profiles.md): Run repeatable benchmarks in Gothab CI and store typed performance results.
- [Running Workflows Locally](https://gothab.io/docs/ci/running-locally.md): Run a workflow's jobs on your own machine with gt run, including whole job graphs that pass artifacts and outputs between jobs.
- [CI/CD Workflows](https://gothab.io/docs/ci/workflows.md): Automated builds, tests, and deployments with Gothab workflows.
- [Authentication](https://gothab.io/docs/guides/authentication.md): Accounts, SSH keys, and access tokens.
- [Creating a Repository](https://gothab.io/docs/guides/creating-a-repo.md): How to create and configure repositories.
- [Importing from Hugging Face](https://gothab.io/docs/guides/hugging-face-imports.md): Copy a public Hugging Face model or dataset revision into Gothab.
- [Hugging Face Mirroring](https://gothab.io/docs/guides/hugging-face-mirroring.md): Connect an administering Hugging Face identity and continuously mirror models or datasets.
- [Issues](https://gothab.io/docs/guides/issues.md): Issue tracking with labels, states, and requirement linking.
- [Model and Dataset Hub](https://gothab.io/docs/guides/model-dataset-hub.md): Discover and use model and dataset repositories on Gothab.
- [Gothab Pages](https://gothab.io/docs/guides/pages.md): Publish a static website from a repository with Gothab CI.
- [Pull Requests](https://gothab.io/docs/guides/pull-requests.md): Code review, merge strategies, stacked PRs, and auto-merge.
- [Requirements](https://gothab.io/docs/guides/requirements.md): Track and manage requirements as a tree structure within repositories.
- [Gothab Documentation](https://gothab.io/docs/index.md): Documentation for Gothab — the hosted Git forge.
- [API Reference](https://gothab.io/docs/reference/api.md): Overview of the Gothab REST API.
- [apt registry setup](https://gothab.io/docs/reference/apt-registry.md): Install and publish Debian packages against your namespace's signed apt repository on Gothab.
- [Branch Protection](https://gothab.io/docs/reference/branch-protection.md): Enforce quality gates on merges with branch protection rules.
- [Coverage](https://gothab.io/docs/reference/cli-extra/coverage.md)
- [Health](https://gothab.io/docs/reference/cli-extra/health.md)
- [Index](https://gothab.io/docs/reference/cli-extra/index.md)
- [Namespace](https://gothab.io/docs/reference/cli-extra/namespace.md)
- [Release](https://gothab.io/docs/reference/cli-extra/release.md)
- [Run](https://gothab.io/docs/reference/cli-extra/run.md)
- [Security](https://gothab.io/docs/reference/cli-extra/security.md)
- [Stack](https://gothab.io/docs/reference/cli-extra/stack.md)
- [gt agent](https://gothab.io/docs/reference/cli/agent.md): Interactive coding agent against the current directory
- [gt alias](https://gothab.io/docs/reference/cli/alias.md): Set up shell aliases
- [gt api](https://gothab.io/docs/reference/cli/api.md): Make raw API requests
- [gt auth](https://gothab.io/docs/reference/cli/auth.md): Authenticate with a Gothab instance
- [gt cache](https://gothab.io/docs/reference/cli/cache.md): List and delete a repository's CI caches
- [gt ci](https://gothab.io/docs/reference/cli/ci.md): Inspect CI runs (logs, …)
- [gt coverage](https://gothab.io/docs/reference/cli/coverage.md): Upload code-coverage reports (for use inside a CI step)
- [gt dependency](https://gothab.io/docs/reference/cli/dependency.md): Inspect dependency attestation-policy state
- [gt health](https://gothab.io/docs/reference/cli/health.md): Inspect code-health findings (duplication, complexity)
- [gt CLI Reference](https://gothab.io/docs/reference/cli/index.md): Generated command and option reference for the Gothab CLI.
- [gt issue](https://gothab.io/docs/reference/cli/issue.md): Manage issues
- [Namespace](https://gothab.io/docs/reference/cli/namespace.md)
- [gt package](https://gothab.io/docs/reference/cli/package.md): Inspect packages and verify their build provenance
- [gt pr](https://gothab.io/docs/reference/cli/pr.md): Manage pull requests
- [gt profile](https://gothab.io/docs/reference/cli/profile.md): Run and upload typed performance profiles
- [gt provenance](https://gothab.io/docs/reference/cli/provenance.md): Verify an instance's package-provenance trust root
- [Providers](https://gothab.io/docs/reference/cli/providers.md)
- [gt publisher](https://gothab.io/docs/reference/cli/publisher.md): Manage trusted package publishers of a namespace
- [gt release](https://gothab.io/docs/reference/cli/release.md): Create releases and attach files to them
- [gt repo](https://gothab.io/docs/reference/cli/repo.md): Manage repositories
- [gt requirement](https://gothab.io/docs/reference/cli/requirement.md): Manage requirements
- [gt run](https://gothab.io/docs/reference/cli/run.md): Run a workflow locally (offline runner)
- [gt search](https://gothab.io/docs/reference/cli/search.md): Hybrid lexical + semantic code search over a local directory tree
- [gt secret](https://gothab.io/docs/reference/cli/secret.md): Manage Actions secrets (repo or namespace)
- [gt security](https://gothab.io/docs/reference/cli/security.md): Scan the current checkout for security problems and upload results
- [gt setup](https://gothab.io/docs/reference/cli/setup.md): Install the `git-remote-gothab` helper (enables `gothab://` remotes)
- [gt stack](https://gothab.io/docs/reference/cli/stack.md): Author and reconcile commit-oriented pull-request stacks
- [gt support](https://gothab.io/docs/reference/cli/support.md): Manage administrator support tickets
- [gt variable](https://gothab.io/docs/reference/cli/variable.md): Manage Actions variables (repo or namespace)
- [Code Search](https://gothab.io/docs/reference/code-search.md): Full-text and symbol search across your codebase.
- [CODEOWNERS](https://gothab.io/docs/reference/codeowners.md): Per-path code ownership for review routing and merge gates.
- [GitHub REST API compatibility preview](https://gothab.io/docs/reference/github-rest-api-preview.md): Which GitHub REST operations Gothab supports, how to point clients at it, and how each differs from GitHub.
- [Hugging Face-compatible API](https://gothab.io/docs/reference/hugging-face-api.md): Use supported huggingface_hub read operations with Gothab repositories.
- [Platform Limits](https://gothab.io/docs/reference/limits.md): Upload, repository, CI, package, search, and API limits enforced by Gothab.
- [Markdown for LLMs and Tools](https://gothab.io/docs/reference/markdown.md): Read this documentation and public repositories as plain markdown, starting from /llms.txt.
- [Package attestation policies](https://gothab.io/docs/reference/package-attestations.md): Require human review of dependency versions before installs can pull them.
- [Package provenance](https://gothab.io/docs/reference/package-provenance.md): Verify where a package file was built, with gt or stock cosign, against your instance's pinned trust root.
- [PyPI registry setup](https://gothab.io/docs/reference/pypi-registry.md): Install, cache, and publish Python packages against Gothab's PyPI Simple Repository API.
- [Repository Properties](https://gothab.io/docs/reference/repository-properties.md): Typed values on a namespace's repositories, and selecting the repositories that get a secret or variable by those values.
- [Tool Configuration Files](https://gothab.io/docs/reference/tool-config.md): Configure which repository paths Gothab's analysis tools look at, with .gothab/<tool>.toml.
- [Webhooks](https://gothab.io/docs/reference/webhooks.md): Notify external services on repository events.

## Markdown views

Public repositories can be read as markdown too: `/{owner}/{repo}.md` is a repository's home, and its file and directory pages answer `Accept: text/markdown` with markdown.
