Git Credential Handling Using Standard Git Credential Helper
To avoid entering credentials for each Git command, configure either git-credential-store or git-credential-cache.
Before you use git-credential-store or git-credential-cache, set the HOME variable accordingly with the following terminal command:
export HOME=~
The tilde (~) corresponds to a folder named project that is located at the same level as the vhome folder.
git-credential-store
git-credential-store keeps credentials in a file in ${HOME}/.git-credentials, which requires protection accordingly. For more information about git-credential-store, see the Git documentation at https://git-scm.com/docs/git-credential-store
.
.
git-credential-cache
git-credential-cache keeps the credentials in memory in a daemon process that is communicating through a socket: ${HOME}/.git-credential-cache/socket. You can configure git-credential-cache timeout. For more information about git-credential-cache, see the Git documentation at https://git-scm.com/docs/git-credential-cache
.
git-credential-cache is preferred over git-credential-store because git-credential-store stores credentials on disk.
${HOME}/.git-credential-cache/ and ${HOME}/.git-credentials/ can't be located in /vhome.
After the container that runs the git terminal user application is recreated, re-enter the stored or cached credentials.