clone

This is an alternative Git clone command which will clone and configure your repository for patch workflow.

pt clone <args> <url>

arguments

ArgumentUsageDescription
--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 falseControls https ssl verification. If set false, http.sslVerify will be persisted in your repository config.
-u, --username-u jamesSpecify the account username for the patch server
-p, --password-p paswordSpecify 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

examples

pt clone --gerrit https://git.eclipse.org/r/jgit/jgit
pt clone --gitblit https://next-gitblit.rhcloud.com/git/gitblit.git