git 设置不需要输入密码, 去除 fetch / pull 代码每次都需要输入密码的烦恼
2018-07-12 16:52
190 查看
https方式每次都要输入密码,按照如下设置即可输入一次就不用再手输入密码的困扰而且又享受https带来的极速设置记住密码(默认15分钟):
git config --global credential.helper cache如果想自己设置时间,可以这样做:
git config credential.helper 'cache --timeout=3600'这样就设置一个小时之后失效长期存储密码:
git config --global credential.helper store增加远程地址的时候带上密码也是可以的。(推荐)
http://yourname:password@git.oschina.net/name/project.git补充:使用客户端也可以存储密码的。如果你正在使用ssh而且想体验https带来的高速,那么你可以这样做: 切换到项目目录下 :
cd projectfile/移除远程ssh方式的仓库地址
git remote rm origin增加https远程仓库地址
git remote add origin http://yourname:password@git.oschina.net/name/project.git阅读更多
相关文章推荐
- git 设置不需要输入密码, 去除 fetch / pull 代码每次都需要输入密码的烦恼
- git 设置不需要输入密码, 去除 fetch / pull 代码每次都需要输入密码的烦恼
- git 设置不需要输入密码, 去除 fetch / pull 代码每次都需要输入密码的烦恼
- 设置Git不需要每次push都输入用户名和密码
- linux下,每次git pull 或者git push都需要输入账号密码的问题以及git remote 的一些基本操作
- git使用push或者pull命令每次都需要输入用户名和密码?
- Git避免每次远程交互都需要输入密码的设置
- 解决git pull/push每次都需要输入密码问题
- git 设置 key 到服务器,同步代码不需要输入用户名和密码
- linux 安装git 设置每次不需要写密码(我的是ubuntu16.04)
- git命令行pull,push解决每次都输入用户名密码
- GIT PUSH/PULL时总需要输入用户名密码的解决方案
- git配置不用每次都输入密码提交或pull
- git托管代码随笔--运用ssh传输,不用每次提交频繁输入github账号密码
- Git SSH Key的配置好却每次需要输入账号密码解决方法
- 【GitHub】解决每次push代码到github都需要输入用户名和密码的方法
- 解决oschina同步代码每次都需要输入密码的问题
- git 解决每次更新代码都要输入用户名密码的解决方案--1
- git push/pull时总需要输入用户名密码的解决方案
- git push 免密码,去除每次输入密码