A dotnet global tool for managing Git credentials using the Microsoft Git Credentials Manager Core.
$ dotnet add package dotnet-gcmA dotnet global tool for managing Git credentials using the Microsoft Git Credentials Manager Core.
Usage:
gcm [options] [command]
Options:
--version Show version information
-?, -h, --help Show help and usage information
Commands:
get <url> Get a stored credential.
set <url> Store a credential.
delete <url> Delete a stored credential.
Note that all commands can operate on a simplified syntax using a full URI, which can include username:password
(as in the set command). That argument is converted to a Uri and the existing options are used as the default
value for required options that aren't provided. You can alternatively provide the individual options.
get: Get a stored credential.
Usage:
gcm [options] get [<url>]
Arguments:
<url> A URL used to populate options from a single value: [protocol]://[host]/[path?]
Options:
-p, --protocol <protocol> (REQUIRED) The protocol over which the credential will be used (e.g., https).
-h, --host <host> (REQUIRED) The remote hostname for a network credential. This can include the port number.
--path <path> The path with which the credential will be used. E.g., for accessing a remote
https repository, this will be the repository's path on the server.
-?, -h, --help Show help and usage information
set: Store a credential.
Usage:
gcm [options] set [<url>]
Arguments:
<url> A URL used to populate options from a single value: [protocol]://[user]:[password]@[host]/[path?]
Options:
-s, --protocol <protocol> (REQUIRED) The protocol over which the credential will be used (e.g., https).
-h, --host <host> (REQUIRED) The remote hostname for a network credential. This can include the port number.
-u, --username <username> (REQUIRED) The credential's username.
-p, --password <password> (REQUIRED) The credential's password.
--path <path> The path with which the credential will be used. E.g., for accessing a remote https repository, this
will be the repository's path on the server.
-?, -h, --help Show help and usage information
delete: Delete a stored credential.
Usage:
gcm [options] delete [<url>]
Arguments:
<url> A URL used to populate options from a single value: [protocol]://[host]/[path?]
Options:
-p, --protocol <protocol> (REQUIRED) The protocol over which the credential will be used (e.g., https).
-h, --host <host> (REQUIRED) The remote hostname for a network credential. This can include the port number.
--path <path> The path with which the credential will be used. E.g., for accessing a remote https repository, this
will be the repository's path on the server.
-?, -h, --help Show help and usage information