Git linux下保存密码方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git linux下保存密码方法相关的知识,希望对你有一定的参考价值。

vi ~/.git-credentials

输入以下内容:

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

 

执行命令

git config --global credential.helper store

 

vi ~/.gitconfig,末尾添加了一项:

[credential]

helper = store

 

即可免密使用git命令。

以上是关于Git linux下保存密码方法的主要内容,如果未能解决你的问题,请参考以下文章