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:
HEADfor a bare repository, orrefs/remotes/origin/HEADfor 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"