Skip to content




Table of Content

git credentials

https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage

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
protocol=https
host={name of the git server}
username={username}
password={password}

Configure git to use the credentials file created above.

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

my credentials

cat ~/.git-credentials