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

posted @ 2017-01-12 17:29  李瑞鑫  阅读(5652)  评论(0编辑  收藏  举报