packit-init - Man Page

Initiate a repository to start using packit.

Synopsis

packit init [Options] [PATH_OR_URL]

Description

Initiate a repository to start using packit.

If you specify --upstream-url, then a source-git repository is made, otherwise only configuration file packit.yaml is created.

To learn more about source-git, please check https://packit.dev/docs/source-git/

Options

-f, --force

Reset config to default if already exists.

--upstream-url TEXT

URL or local path to the upstream project; defaults to current git repository

--upstream-ref TEXT

Use this upstream git ref as a base for your source-git repo; defaults to current tip of the git repository

--fedora-package TEXT

Pick spec file from this Fedora Linux package; implies creating a source-git repo

--centos-package TEXT

Pick spec file from this CentOS Linux or CentOS Stream package; implies creating a source-git repo

--dist-git-branch TEXT

Get spec file from this downstream branch, for Fedora this defaults to main, for CentOS it's c8s. When --dist-git-path is set, the default is the branch which is already checked out.

--dist-git-path TEXT

Path to the dist-git repo to use. If this is defined, --fedora-package and --centos-package are ignored.

Referenced By

packit(1).

2021-02-12 packit init Manual