博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

[github][https模式下提交记住密码]

Posted on 2013-09-24 16:17  紫华弦筝  阅读(508)  评论(0编辑  收藏  举报

git版本 1.7.9以后

1.  开启

  git config --global credential.helper cache

2. 设置时间 

  git config credential.helper 'cache --timeout=3600'

 

git版本 1.7.9以前

  git config remote.origin.url https://you:password@github.com/you/example.git

 

参考:http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typing-when-using-https-github/5343146#5343146