Skip to content

Table of Content

git credentials

To store git credentials for cli, run git credential-store like below, type in four lines, and end the input with empty line.

And repeat as many times as you need to add different credentials.

git credential-store --file ~/.git-credentials git-credentials
host={name of the git server}

Configure git to use the credentials file created above.

git config --global credential.helper 'store --file ~/.git-credentials'

my credentials

cat ~/.git-credentials