This is an alternative Git clone command which will clone and configure your repository for patch workflow.
pt clone <args> <url>
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 clone --gerrit https://git.eclipse.org/r/jgit/jgit
pt clone --gitblit https://next-gitblit.rhcloud.com/git/gitblit.git