码迷,mamicode.com
首页 > 其他好文 > 详细

git push 缓存密码和用户名

时间:2019-11-06 22:48:39      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:密码   ane   seconds   ima   alt   run   http   command   after   

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

标签:密码   ane   seconds   ima   alt   run   http   command   after   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!