https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage
# Config timeout by using cache
git config --global credential.helper cache --timeout=36000
# store forever
git config --global credential.helper 'store --file ~/.my-credentials'
git credential-store --file ~/.my-credentials store
# git will read the input from stdin and stores it to the given file.
protocol=https
host=gitlab.com
username=cinhtau
password=a-magic-password
#A blank line ends the input from stdin