码迷,mamicode.com
首页 > 系统相关 > 详细

Git linux下保存密码方法

时间:2016-09-26 20:05:53      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:

vi ~/.git-credentials

输入以下内容:

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

 

执行命令

git config --global credential.helper store

 

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

[credential]

helper = store

 

即可免密使用git命令。

Git linux下保存密码方法

标签:

原文地址:http://www.cnblogs.com/flasheryu/p/5910233.html

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