缓存Github密码,之后git push 不用再输入密码
来源:互联网 发布:企业宣传制作软件下载 编辑:程序博客网 时间:2024/06/05 18:53
缓存Github密码,之后git push 不用再输入密码
0. 效果
在隔一段时间之后git push 到github,需要输入用户名和密码。
在缓存时间期限内,git push到github,就不需要再输入用户名和密码。
1. 缓存github密码
缓存15分钟(默认)
git config --global credential.helper cache
自定义缓存时间,例如1个小时
git config --global credential.helper 'cache --timeout=3600'
timeout的单位为秒。
2. 问题解决:unable to connect to cache daemon: Permission denied
问题
$ git push -u origin master fatal: unable to connect to cache daemon: Permission denied
说明缓存的github密码不允许读取。
在~/.git-credential-cache/
目录下保存缓存,要保证当前用户有读取.git-credential-cache
目录的权限。
解决方法: sudo chown <current-user>:<current-user> ~/.git-credential-cache
3. 参考
https://help.github.com/articles/caching-your-github-password-in-git/#platform-linux
0 0
- 缓存Github密码,之后git push 不用再输入密码
- git push时候不用每次输入用户名及密码:
- it bash会发现git push时不用再输入用户名和密码
- git push不需要输入密码
- git push 不需要输入密码
- git push 每次都需要输入用户名和密码 TortoiseGit 不用每次输入用户名和密码的方法
- github添加ssh key之后push还要输入账号密码的解决方法
- Github:每次git push推送的时候都需要输入git的用户名和密码
- Git@OSC push 不用每次输入用户名和密码的方法
- git push不想输入用户名和密码
- git push时免除输入账号密码
- git避免每次push输入密码
- git push 提示输入用户名和密码
- Git pull、push 免账号密码输入
- 如何让git记住你的账号密码?不用每次push的时候都输入账号密码
- git push github 远程仓库 要求每次输入账号密码问题
- git每次pull/push到gitHub都要输入密码的解决方案
- Git本地仓库push至GitHub远程仓库每次输入账户密码问题解决
- maven为什么总是m2
- 每天一个 Linux 命令(18):locate 命令
- Nginx 配置解释
- 购买bandwagonhost小记
- 2016年终总结——学生时代的结束、北漂生活的开始
- 缓存Github密码,之后git push 不用再输入密码
- 欢迎使用CSDN-markdown编辑器
- 基本特效:饿了么丝滑无缝过度搜索栏的实现
- leetcode oj java 313. Super Ugly Number
- 2017.01.07 JS随手记
- Mac selenium+maven+java+testng+jenkins+github,web自动化环境搭建。第一章
- 条款二十九: Reference counting(引用计数)
- 韩信点兵
- Angular2文档学习的知识点摘要——显示数据、用户输入、表单