1PACKIT SOURCE-GIT INIT(1)packit source-git init ManualPACKIT SOURCE-GIT INIT(1)
2
3
4

NAME

6       packit-source-git-init - Initialize SOURCE_GIT as a source-git repo...
7

SYNOPSIS

9       packit source-git init [OPTIONS] UPSTREAM_REF SOURCE_GIT DIST_GIT
10

DESCRIPTION

12       Initialize SOURCE_GIT as a source-git repo by applying downstream
13           patches from DIST_GIT as Git commits on top of UPSTREAM_REF.
14
15           SOURCE_GIT  needs  to  be an existing clone of the upstream reposi‐
16       tory.
17
18           UPSTREAM_REF is a tag, branch or commit from SOURCE_GIT.
19
20           SOURCE_GIT and DIST_GIT are paths to the source-git and dist-git
21           repos. Branch names can be specified, separated by colons.
22
23           If a branch name is specified for SOURCE_GIT, the branch is checked
24           out and reset to UPSTREAM_REF.
25
26           If a branch name is specified for DIST_GIT, the branch is checked
27           out before setting up the source-git repo. This branch is expected
28           to exist.
29
30           Each Git commit created in SOURCE_GIT will have  a  'From-dist-git-
31       commit'
32           trailer  to  mark  the hash of the dist-git commit from which it is
33       created.
34
35           To learn more about source-git, please check
36
37               https://packit.dev/docs/source-git/
38
39           Examples:
40
41
42               $    packit    source-git    init    v2.3.1     src/acl:rawhide
43       rpms/acl:rawhide
44               $  packit  source-git  init  --pkg-tool  centpkg v2.3.1 src/acl
45       rpms/acl
46
47

OPTIONS

49       --upstream-url TEXT
50              Git URL of the upstream repository. It is saved in  the  source-
51              git configuration if it is specified.
52
53       --upstream-remote TEXT
54              Name  of  the  remote  pointing  to the upstream repository.  If
55              --upstream-url is not specified, the fetch URL of this remote is
56              saved  in the source-git configuration as the Git URL of the up‐
57              stream project. Defaults to 'origin'.
58
59       --pkg-tool TEXT
60              Name or path of the packaging tool used to work with sources  in
61              the dist-git repo. A variant of 'rpkg'.  Defaults to 'fedpkg' or
62              the tool configured in the Packit configuration.
63
64       --pkg-name TEXT
65              The name of the package in the distro.  Defaults to  the  direc‐
66              tory name of DIST_GIT.
67
68
69
700.87.1                            2023-11-30         PACKIT SOURCE-GIT INIT(1)
Impressum