PACKIT-DIST-GIT-INIT(1)
π packit dist-git init β from the packit dist-git init Manual (section 1, bestie) π
πΈ NAME πΈ
packit-dist-git-init β Create the initial Packit dist-git... (yes the original literally trails off like that, we love a mysterious queen)
β¨ SYNOPSIS β¨
packit dist-git init [OPTIONS] [OTHER_ARGS]... [PATH_OR_URL]
π¦ DESCRIPTION π¦
Okay so bestie, here's the vibe: this command creates the initial Packit dist-git configuration for Fedora release syncing, based on whatever input parameters you hand it. It's giving setup wizard but make it Fedora. π
What it does is it adds a .packit.yaml file to the dist-git repository, and it can do that in two ways:
- a repo specified by path (and that defaults to the current working directory, no cap), or
- a repo specified by URL β as in
https://src.fedoraproject.org/rpms/<package>β in which case it clones the repository and drops the config in there. π«Ά
Real talk though: for the URL route you ideally want to use the--clone-pathoption, because otherwise the repository gets cloned into a temporary directory that then gets removed. So your work would just... evaporate. π Use--clone-path, bestie, I'm begging.
By default, all 3 jobs for release syncing get configured: pull_from_upstream, koji_build, and bodhi_update. If you don't want some of them, you've got --no-pull, --no-koji-build or --no-bodhi-update to skip them. Choose your own adventure. π
And then there's the whole "how do you want to ship it" situation:
- create the Packit config file only locally (this is the default),
- create a pull request (with the
--create-proption), or - push directly to the dist-git's default branch (with
--push-to-distgit). π₯
Also, heads up: go look at packit init if what you actually want is to initialize a repository as an upstream repo. Different girl, different job.
π Examples π
Local Packit configuration generation for a dist-git repo in the current working directory:
$ packit dist-git init
Local Packit configuration generation for a dist-git repo in the current working directory configuring git URL for cloning of the upstream repository:
$ packit dist-git init --upstream-git-url
https://github.com/packit/packit .
Local Packit configuration generation for a dist-git repo specified by URL that will be cloned to <my-package> dir:
$ packit dist-git init --clone-path
`<my-package>` https://src.fedoraproject.org/rpms/packit
Using arbitrary configuration options that are not provided as the command options (the working dir needs to be specified in this case):
$ packit dist-git init --upstream-git-url
https://github.com/packit/packit
--my-option option-value .
π OPTIONS π
--upstream-git-url TEXTβ URL to the upstream GIT repository πΈ--upstream-git-url-command TEXTβ a command you run to get the URL of the upstream git repository, for when you're feeling indirect π«--upstream-tag-template TEXTβ template applied for upstream tags if they differ from versions. E.g.'v{version}'π--upstream-tag-include TEXTβ Python regex used for filtering upstream tags to include. β¨--upstream-tag-exclude TEXTβ Python regex used for filtering upstream tags to exclude. π--version-update-mask TEXTβ Python regex used for comparison of the old and the new version. π--version-update-specifiers TEXTβ PEP 440 version specifier set (e.g.'>=1.0, <2.0') used to filter the proposed version. π§--issue-repository TEXTβ URL of a git repository that can be used for reporting errors in form of issues. π--no-pullβ Do not include the pull from upstream job in the config. π--no-koji-buildβ Do not include the Koji build job in the config. π--allowed-committers TEXTβ comma separated list ofallowed_committersused for Koji builds. π«Ά--allowed-pr-authors TEXTβ comma separated list ofallowed_pr_authorsused for Koji builds. π«Ά--no-bodhi-updateβ Do not include the Bodhi update job in the config. π--actions-file FILEβ yaml file with'actions'that should be used for the config. π--dist-git-branches TEXTβ comma separated list of target branches in dist-git to release into. (defaults to rawhide) πΏ--dist-git-branches-mapping TEXTβ JSON dictionary of target branches in dist-git to release into for whichfast_forward_merge_intosyntax will be used, e.g.'{"fedora-rawhide": ["f39", "f40"]}'. If not provided and--dist-git-branchesis not provided as well, defaults to'{"fedora-rawhide": ["fedora-branched"]}'. πΊοΈ-p,--push-to-distgitβ Push the generated Packit config to the dist-git repository's rawhide. π-c,--create-prβ Create a PR with generated Packit config. π-f,--forceβ Reset config to default if already exists. β οΈ (yes it will overwrite, bestie, be brave)--clone-path TEXTβ Path to clone the dist-git repo into (if path_or_url is URL). Otherwise clone the repo in a temporary directory. π--commit-msg TEXTβ Commit message used when creating a PR (also for the title) or pushing to dist-git. Default:'Add Packit configuration for automating release syncing'βοΈ
and that's the whole page, bestie, you ate that π
this was page 1 of the packit dist-git init Manual, version 1.16.3, dated 2026-09-04 β mwah, go slay some release syncing πβ¨
π¦ where this page comes from
- fedora 43: packit 1.16.3-1.fc43 Β· MIT
- fedora 44: packit 1.16.3-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms