Skip to main content

wit github import

Import repositories from GitHub to wit, including all metadata like issues, pull requests, labels, milestones, and releases.

Overview

The GitHub import command allows you to:
  • Clone Git repository data
  • Import issues with comments
  • Import pull requests with comments
  • Import labels and milestones
  • Import releases

Usage

Options

Import Filters

Examples

Basic Import

Output:

Preview Mode

Output:

Import with Custom Name

Import into Organization

Private Repository Import

For private repositories, authenticate first:

Selective Import

Import only issues:
Import metadata without git data:
Skip specific data:

Authentication

GitHub Login

For the best experience, authenticate with GitHub first:
This stores credentials securely for future imports.

Token Authentication

Alternatively, provide a token directly:
Required token scopes:
  • repo - For private repositories
  • public_repo - For public repositories only

What Gets Imported

Git Data

  • All commits and history
  • All branches
  • All tags
  • Repository configuration

Issues

  • Title and body
  • Labels and assignees
  • Milestone association
  • Open/closed state
  • Comments (with author attribution)
  • Original creation date (noted in body)

Pull Requests

  • Title and body
  • Source and target branches
  • Labels and assignees
  • Merge status
  • Comments and review comments
  • Original creation date

Labels

  • Name and color
  • Description

Milestones

  • Title and description
  • Due date
  • Open/closed state

Releases

  • Tag name
  • Title and body
  • Draft/prerelease status
  • Assets (metadata only)

Notes

GitHub usernames are preserved in comments as “@username” but won’t link to wit users unless they exist.
Issue and PR numbers may differ in wit but original numbers are preserved in the content for reference.
For very large repositories, the import may take significant time. Consider using --metadata-only for initial testing.

Server Mode

For full import functionality with database storage:
In CLI-only mode, git data is cloned locally but metadata import has limited persistence.