komrad

komrad gitlab credential

Answer git's credential helper protocol with a GitLab connection's token

komrad gitlab

komrad gitlab credential

Answer git when it asks for a password.

Git runs this and describes what it wants to reach. This answers only for https to a host connected as a GitLab forge with a token. Anything else gets no answer, so git falls back to whatever else the account has configured.

Set it up for each GitLab host with:

git config --global credential.https://gitlab.com.helper '!komrad gitlab credential'

Inherited flags#

FlagTypeDescription
--configstringArray

path to a config TOML, repeatable, later files win over earlier ones

--enginestring

engine to reach: local for this machine, or a file in the config's engines directory, layered over the config