网站首页 文章专栏 完爆git客户端每次push时的输入框
完爆git客户端每次push时的输入框
编辑时间:2017年5月11日 15:19 作者:赵彦昌 浏览量:2654

记录频繁使用,又记不住的简单功法

你是哪里的,的,的

其实记录密码有三种模式

此功必先(怎么感觉说这话的时候,它好像很紧张的感觉)入坑,那就是默认不会记住密码

其二

可以缓存一段时间


#默认十五分钟
git config –global credential.helper cache
#如果想自己设置时间,可以这样做:
git config credential.helper ‘cache –timeout=3600’
#这样就设置一个小时之后失效

最后一式



#长期存储密码:
git config –global credential.helper store


有的师傅是永远不会把全部告诉你的,比如下来的秘籍


$ git remote rm origin
$ git remote add origin git@github.com:sosout/myblog.git
$ git push origin
默认是https


使用git协议





来说两句吧
最新评论