Skip to content

af import-repository

Request a new repository imported from a Git repository

Imports every commit on the source’s default branch, once, and each commit keeps its Git ID. The new repository is unavailable until the import finishes. Requires an administrator; it takes effect at once unless the forge requires a second administrator.

Usage

af import-repository [OPTIONS] <NAME> <SOURCE>

Arguments

  • <NAME>

    Repository name: letters, digits, ., - and _

  • <SOURCE>

    Path to the Git repository on the forge’s server nodes

    Its default branch is imported: HEAD for a bare repository, or refs/remotes/origin/HEAD for a checkout. Remote URLs are not supported yet.

Options

  • --reason <REASON>

    Reason for the request, recorded with it

    Default: ""

Global options

Every af command also takes the global options.

Examples

af import-repository web /srv/git/web.git --reason "moving to the forge"

Type to search…

↑↓ navigate↵ selectEsc close