LinuxCommandLibrary

git-credential

Retrieve and store authentication credentials

TLDR

Get credentials

$ echo "url=https://github.com" | git credential fill
copy
Store credentials
$ url=https://github.com
username=user
password=token
EOF```

**Reject credentials**
copy
url=https://github.com
EOF```

SYNOPSIS

git credential action

DESCRIPTION

git credential manages stored authentication credentials. It interfaces with credential helpers to retrieve, store, and erase credentials for remote repositories.
The command is typically invoked automatically by Git during push/pull operations. Direct use is for debugging or scripting authentication. Credentials flow through configured helpers (cache, store, osxkeychain, etc.).

PARAMETERS

fill

Retrieve credentials for URL.
approve
Store credentials.
reject
Remove stored credentials.
--help
Display help information.

CAVEATS

Usually called internally. Helpers must be configured. Sensitive data handling required.

HISTORY

git credential was added to Git to standardize credential management across helpers, replacing ad-hoc authentication handling.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community