Skip to main content
wit includes a built-in Git server that accepts push and pull over HTTP. Run your own GitHub-like infrastructure with a single command.

Quick Start

Command Reference

Examples

Basic Usage

Production Setup

Using the Server

Once the server is running, you can interact with it using standard git commands.

Clone a Repository

Push to Create a New Repository

Repositories are created automatically on first push:

Fetch and Pull

Server Output

When you start the server, you’ll see:

API Endpoints

The server exposes several endpoints:

Health Check

Response:

List Repositories

Response:

Database Integration

For full platform features (users, PRs, issues), connect to PostgreSQL:
Without a database, the server works for basic Git operations but won’t have:
  • User accounts
  • Pull requests
  • Issues
  • Activity tracking

Repository Storage

Repositories are stored as bare Git repositories:

Running in Docker

Using with docker-compose

Graceful Shutdown

The server handles shutdown signals gracefully:
This ensures in-progress operations complete before shutdown.

Troubleshooting

Check your DATABASE_URL environment variable:
The server will continue without database features if connection fails.
Make sure the repository URL matches the pattern:
The owner and repo will be extracted from the URL.

Next Steps

Pull Requests

Create and manage PRs

Issues

Track issues