linux set git to remember password

Under linux:

1. Under ~/, touch to create the file .git-credentials, edit this file with vim, enter:

https://{username}:{password}@github.com

Note to remove {}

2. Execute git config –global credential.helper store in the terminal

3. You can see the ~/.gitconfig file, there will be one more item:
[credential]
helper = store

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324704097&siteId=291194637