码迷,mamicode.com
首页 > 其他好文 > 详细

Git免密码登录

时间:2018-05-26 00:01:53      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:word   执行   class   lua   https   touch   tor   git   lob   

在~/下, touch创建文件 .git-credentials:
touch .git-credentials

# 用vim编辑此文件,
vim .git-credentials

#输入内容格式
https://username:password@github.com

2. 在终端下执行 

git config --global credential.helper store

 

 

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

Git免密码登录

标签:word   执行   class   lua   https   touch   tor   git   lob   

原文地址:https://www.cnblogs.com/lishijia/p/9091069.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!