pijul clone

Clone a repository into a new directory

Usage

pijul clone [-h | --help] [-V | --version] [ --from-branch <from_branch> ] [ (-p | --port) <port> ] [ --to-branch <to_branch> ] <from> [to]

Description

Clone a single branch of a remote repository, i.e. initialise a new repository, and apply all patches from a branch from the remote repository. This is equivalent to pijul init, followed by pijul pull.

Example

From outside a repository:

pijul clone https://nest.pijul.com/pijul_org/pijul

Options

  • -h, --help

    Print a help message and exit.

  • -V, --version

    Print the version of Pijul and exit.

  • --from-branch <from-branch>

    Clone branch <from-branch> from the remote repository, instead of the default branch (which is "master").

  • <from>

    A URI to clone. At the moment, only local paths, SSH paths (such as me@example.com:path/to/repository) and HTTP(S) URLs are supported.

  • -p <port>, --port <port>

    If the repository is accessed over SSH, the port of the remote SSH server, defaulting to 22 (the standard SSH port).

  • --to-branch <branch>

    Store this branch as <branch> instead of using the same name as the remote branch.

  • [to]

    Path to the local directory where the repository will be cloned, defaulting to the current directory followed by the basename of the URI in .