码迷,mamicode.com
首页 > Web开发 > 详细

git https连接方式,记住密码

时间:2016-08-31 20:41:23      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:

Git使用https方式进行连接时,默认每次推送时都要输入用户名和密码。

可以使用命令

$git config credential.helper store

为当前仓库设置记住密码,设置后,只要在推送一次,以后就不需要用户名和密码了

设置后git的配置文件增加

.git目录下的config文件增加一项内容:

[credential]
    helper = store

 

git https连接方式,记住密码

标签:

原文地址:http://www.cnblogs.com/yuzhould/p/5827220.html

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