[ 03 ]Commands
copia-cli auth setup-git¶
copia-cli auth setup-git [flags]
Configure git to use copia-cli as the credential helper of every Copia host you are logged in to, so git clone, fetch and push over https authenticate with the token of the host's active account.
For each host it writes two values of credential.https://<host>.helper to the global git config: an empty value, which drops every helper configured before it for that host, and then "!'<path of copia-cli>' auth git-credential". A helper configured after it, later in the global config or in a repository's config, still takes part. Running it again changes nothing.
With --host it configures that host only, which must be logged in unless --force is given.
Options¶
-f,--force- Configure the host even when you are not logged in to it; needs --host
--host <string>- The Copia host to configure git for
Options inherited from parent commands¶
-R,--repo <string>- Select repository (owner/repo)
--token <string>- Authentication token
Examples¶
$ copia-cli auth setup-git
$ copia-cli auth setup-git --host app.copia.io