snippetbashTip
git credential — Retrieve and store user credentials. More information: <https://git-scm.com/docs/git-credential>.
Viewed 0 times
commandandretrievestoreclicredentialsgit credentialuser
Problem
How to use the
git credential command: Retrieve and store user credentials. More information: <https://git-scm.com/docs/git-credential>.Solution
git credential — Retrieve and store user credentials. More information: <https://git-scm.com/docs/git-credential>.Display credential information, retrieving the username and password from configuration files:
echo "{{url=http://example.com}}" | git credential fillSend credential information to all configured credential helpers to store for later use:
echo "{{url=http://example.com}}" | git credential approveErase the specified credential information from all the configured credential helpers:
echo "{{url=http://example.com}}" | git credential rejectCode Snippets
Display credential information, retrieving the username and password from configuration files
echo "{{url=http://example.com}}" | git credential fillSend credential information to all configured credential helpers to store for later use
echo "{{url=http://example.com}}" | git credential approveErase the specified credential information from all the configured credential helpers
echo "{{url=http://example.com}}" | git credential rejectContext
tldr-pages: common/git credential
Revisions (0)
No revisions yet.