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免密码登录的主要内容,如果未能解决你的问题,请参考以下文章

windows7配置git 免密码登录git服务器

使用TortoiseGit时如何实现SSH免密码登录

Ubuntu更新git源,免密登录

centos7安装最新版git及免密码登录配置

ssh免密码登录linux服务器

Linux 配置ssh 免密码登录