This command configures an existing repository for patch workflow. It is unnecessary to use this command if you have already cloned using Barnum.
pt init <args> <url>
pt init <args> -r origin
If neither an url nor a remote is specified, the origin remote url is used.
Argument | Usage | Description |
---|---|---|
--gitblit | <flag> | Specifies that the Gitblit is your patch server. Your repository will be configured using your Gitblit account metadata and a remote will be setup for fetching & pushing patches, fetching notes, and fetching Tickets. The Gerrit Change-Id commit hook script will be installed into .git/hooks and set executable. |
--gerrit | <flag> | Specifies that Gerrit is your patch server. A remote will be setup for fetching & pushing patches and fetching notes. The Gerrit Change-Id commit hook script will be installed into .git/hooks and set executable. |
-y, --verifySsl | -y false | Controls https ssl verification. If set false, http.sslVerify will be persisted in your repository config. |
-u, --username | -u james | Specify the account username for the patch server |
-p, --password | -p pasword | Specify the account password for the patch server |
--debug | <flag> | Enables verbose debug logging and stacktraces |
-q, --quiet | <flag> | Disables all console output except for stacktraces |
--nocolor | <flag> | Disables ANSI escape sequences |
pt init --gerrit -r origin
pt init --gitblit https://next-gitblit.rhcloud.com/git/gitblit.git --nocolor --debug