linux 设置git记住密码

linux下:

1.在~/下, touch创建文件 .git-credentials, 用vim编辑此文件,输入:

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

注意去掉{}

2.在终端下执行  git config --global credential.helper store

3.可以看到~/.gitconfig文件,会多了一项:
[credential]
helper = store

原文地址:https://www.cnblogs.com/liruixin/p/6279132.html