git pull 自动记录账号密码(转)
2017-09-07 00:00
169 查看
摘要: git pull 一遍一遍输密码让它自己记录一下
原帖地址http://www.cnblogs.com/orzlin/p/5613310.html
1、先cd到根目录,执行git config --global credential.helper store命令
2、执行之后会在.gitconfig文件中多加红色字体项
3、之后cd到项目目录,执行git pull命令,会提示输入账号密码。输完这一次以后就不再需要,并且会在根目录生成一个.git-credentials文件
原帖地址http://www.cnblogs.com/orzlin/p/5613310.html
1、先cd到根目录,执行git config --global credential.helper store命令
[root@localhost]# git config --global credential.helper store
2、执行之后会在.gitconfig文件中多加红色字体项
[user] name = 天明 email = xxxx@xxxx.com [credential] helper = store
3、之后cd到项目目录,执行git pull命令,会提示输入账号密码。输完这一次以后就不再需要,并且会在根目录生成一个.git-credentials文件
[root@iZ25mi9h7ayZ test]# git pull Username for 'https://git.oschina.net': xxxx@xxxx.com Password for 'https://xxxx@xxxx.com@git.oschina.net':
[root@iZ25mi9h7ayZ ~]# cat .git-credentials https://Username:Password@git.oschina.net[/code] 4、之后pull/push代码都不再需要输入账号密码了~
相关文章推荐
- linux git push pull免账号密码
- git pull总是要输入账号和密码
- linux git pull/push时提示输入账号密码之免除设置
- linux服务器git pull/push时避免频繁输入账号密码
- git本地免密码和账号pull、push
- linux下使用git来pull和push时免输账号密码
- git pull/push时候总提示输入账号密码 - 免除设置
- git命令记录账号和密码
- git pull/push时候总提示输入账号密码 - 免除设置
- linux下,每次git pull 或者git push都需要输入账号密码的问题以及git remote 的一些基本操作
- Git 项目免密拉取代码-自动保存账号密码
- git pull/push时提示输入账号密码之免除设置
- linux服务器git pull/push时提示输入账号密码之免除设置
- Git 使用技巧 - 自动保存自己的账号密码
- git 每一次pull或者push的时候,都需要输入密码和账号
- git commit 不小心把账号密码文件提交上去并push到远程后,怎么删除commit记录
- 解决git pull每次提示输入账号密码的问题
- 解决git 每次使用都需要输入账号密码 ( Windows和linux)
- 引用借以记录借鉴 实现记住密码和自动登录功能
- 让执行git push、git pull等命令时不再输入用户名,密码的简单有效方法之一