首页 > 其他 > 详细

git push 缓存密码和用户名

时间:2019-11-07 00:23:49      阅读:121      评论:0      收藏:0      [点我收藏+]

https://stackoverflow.com/questions/6565357/git-push-requires-username-and-password

git remote -v

------------------------------------------------

Permanently authenticating with Git repositories

Run the following command to enable credential caching:

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

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

You 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 push 缓存密码和用户名

原文:https://www.cnblogs.com/oxspirt/p/11809123.html

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