Git免密码登录
Posted lishijia
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git免密码登录相关的知识,希望对你有一定的参考价值。
在~/下, touch创建文件 .git-credentials:
touch .git-credentials
# 用vim编辑此文件,
vim .git-credentials
#输入内容格式
https://username:[email protected]
2. 在终端下执行
git config --global credential.helper store
可以看到~/.gitconfig文件,会多了一项:
[credential]
helper = store
以上是关于Git免密码登录的主要内容,如果未能解决你的问题,请参考以下文章