首页 > 技术文章 > linux 设置git记住密码

liruixin 2017-01-12 17:29 原文

 

linux下:

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

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

注意去掉{}

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

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

推荐阅读