Git 命令 三

如何记住密码:

https方式每次都要输入密码,按照如下设置即可输入一次就不用再手输入密码的困扰

当出现提示输入密码,且输入了密码,完成了一次Git命令操作之后,输入以下命令:

1.设置记住密码(默认15分钟):

git config --global credential.helper cache

2.如果想自己设置失效时间,可以这样做:

git config credential.helper 'cache --timeout=3600'    #这样就设置一个小时之后失效(单位是秒)

3.想永久保存密码吗?你就这样做:

git config --global credential.helper store

 

posted on 2015-02-13 22:25  not_ull  阅读(141)  评论(0)    收藏  举报

导航