pijul fork

Fork a branch into a new one.


pijul fork [-h | --help] [-V | --version] [--repository <repository>] [--branch <branch>] <to>


Create a new branch with the same contents as branch <branch>, or as the current branch if --branch is not specified.

Branches in Pijul are light, and running this command writes very few bytes on the disk.

Note that the purpose of branches in Pijul is quite different from Git, since Git's "feature branches" can usually be implemented by just patches.


When initialising a repository, a branch called "master" is created. To create its first fork, and call it "unstable", do:

pijul fork unstable


  • -h, --help

    Print a help message and exit.

  • -V, --version

    Print the version of Pijul and exit.

  • --repository <repository>

    Don't run this command in the current directory, run it in <repository> instead.

  • --branch <branch>

    Fork branch <branch> instead of the current branch (the default).

  • [to]

    Name of the new branch.