首页 > 其他 > 详细

git 提交到github时不用每次都输入用户名,密码

时间:2016-12-12 22:55:46      阅读:295      评论:0      收藏:0      [点我收藏+]

Permanently authenticating with Git repositories,

Run following command to enable credential caching.

$ git config credential.helper store
$ git push https://github.com/repo.git

Username for ‘https://github.com‘: <USERNAME>
Password for ‘https://USERNAME@github.com‘: <PASSWORD>

Use should also specify caching expire,

git config --global credential.helper ‘cache --timeout 7200‘

After enabling credential caching, it will be cached for 7200 seconds (2 hour).

git 提交到github时不用每次都输入用户名,密码

原文:http://www.cnblogs.com/oxspirt/p/6165710.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!