Windows Git Bash 记住用户名密码
2016-12-06 00:00
459 查看
Windows下使用git bash时,总是提示输入用户名密码,严重影响了开发效率,经搜索查找找到了如下有效的解决方案,屡试不爽!
1、先创建存储用户名密码的文件 ,在
mv git-credentials .git-credentials
2、用记事本打开这文件输入,如果用户名中有@,那么使用%代替:
https://{username}:{password}@github.com
例:
保存;
3、重新进入 git bash,然后输入:
git config –global credential.helper store
执行完后去查看
就成功了。
4、然后要重新打开 git bash 窗口,再操作就不用输入用户名密码了
1、先创建存储用户名密码的文件 ,在
home文件夹,一般是
C:\Documents and Settings\Administrator下建立文件
.git-credentials(
windows下不允许直接创建以.开头的文件,所以有一个小技巧:先创建一个文件名叫 )
git-credentials然后进入
git bash使用命令:
mv git-credentials .git-credentials
2、用记事本打开这文件输入,如果用户名中有@,那么使用%代替:
https://{username}:{password}@github.com
例:
https://xiaoerlang:654321@github.com
保存;
3、重新进入 git bash,然后输入:
git config –global credential.helper store
执行完后去查看
C:\Documents and Settings\Administrator\.gitconfig这个文件,发现多了一项:
[credential] helper = store
就成功了。
4、然后要重新打开 git bash 窗口,再操作就不用输入用户名密码了
相关文章推荐
- windows下让git bash记住你的用户名和密码
- 在windows上使用_netrc文件让Git记住用户名和密码
- 146 Git Bash 记住用户名密码
- git for windows (又名 msysgit)如何记住用户名和密码 (亲测)
- Windows For TortoiseGit记住用户名密码的方法(store保存模式 )
- 在windows下 git 记住用户名密码
- Git Bash 记住用户名密码
- git for windows (又名 msysgit)如何记住用户名和密码
- git for windows (又名 msysgit)如何记住用户名和密码
- Windows下让Git记住用户名密码(https)
- Git Windows客户端保存用户名和密码
- 终于解决“Git Windows客户端保存用户名与密码”的问题zhz
- 终于解决“Git Windows客户端保存用户名与密码”的问题
- Git https方式记住用户名密码
- 如何清除windows记住的网络用户名和密码
- windows下保存git用户名和密码
- git bash windows无密码操作
- git 记住用户名密码
- Git bash 操作记住密码