Skip to content

ezgh git credential-helper

Give Git this profile's credential for EZGH Git repositories.

Updated View as Markdown
ezgh git credential-helper <get|store|erase>

A Git credential helper: for an EZGH Git clone URL (https://<host>.git.ezghcloud.com/…) it gives Git this profile’s API key (EZGH_API_KEY, the profile’s API key or the instance’s Bot key), so clone, fetch and push work without a password prompt. EZGH Git takes only API keys: with a login from ezgh login it gives nothing and says to create one (ezgh iam api-keys create). For any other host it gives nothing, and Git asks the next helper. store and erase do nothing. Keep the key in a profile of its own, so your login stays, and set it up once:

ezgh --profile git auth set-api-key
git config --global credential.https://*.git.ezghcloud.com.helper '!ezgh --profile git git credential-helper'

Git runs it with get, store or erase, and the request on standard input.

Part of ezgh git.

Examples

ezgh --profile git auth set-api-key < key.txt
git config --global credential.https://*.git.ezghcloud.com.helper '!ezgh --profile git git credential-helper'
git clone https://4k2m9x0a7qpe.git.ezghcloud.com/site.git

Flags

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close