Git bash 操作记住密码
来源:互联网 发布:mac商店英文改中文版 编辑:程序博客网 时间:2024/06/08 05:09
git for windows (又名 msysgit)如何记住用户名和密码
创建存储用户名密码的文件
在home文件夹,一般是 C:\Documents and Settings\Administrator 下建立文件 .git-credentials (windows下不允许直接创建以.开头的文件,所以有一个小技巧:先创建一个文件名叫 )git-credentials 然后进入 git bash 使用命令:
mv git-credentials .git-credentials
用记事本打开这文件输入,如果用户名中有@,那么使用%代替:
https://{username}:{password}@github.com
比如:
https://zhangsan:123456@github.com
保存
添加config项
在任意文件夹下右键进入 git bash
然后输入:
git config --global credential.helper store
执行完后去查看 C:\Documents and Settings\Administrator\.gitconfig 这个文件,发现多了一项:
[credential]
helper = store
就成功了。
然后要重开 git bash 窗口,再提交就不用输入用户名密码
创建存储用户名密码的文件
在home文件夹,一般是 C:\Documents and Settings\Administrator 下建立文件 .git-credentials (windows下不允许直接创建以.开头的文件,所以有一个小技巧:先创建一个文件名叫 )git-credentials 然后进入 git bash 使用命令:
mv git-credentials .git-credentials
用记事本打开这文件输入,如果用户名中有@,那么使用%代替:
https://{username}:{password}@github.com
比如:
https://zhangsan:123456@github.com
保存
添加config项
在任意文件夹下右键进入 git bash
然后输入:
git config --global credential.helper store
执行完后去查看 C:\Documents and Settings\Administrator\.gitconfig 这个文件,发现多了一项:
[credential]
helper = store
就成功了。
然后要重开 git bash 窗口,再提交就不用输入用户名密码
0 0
- Git bash 操作记住密码
- Git bash 操作记住密码
- windoes 上Git bash 操作记住密码
- git Bash记住密码(操作简单)
- Git Bash 记住用户名密码
- 146 Git Bash 记住用户名密码
- Git , TortoiseGit 操作记住密码
- Git , TortoiseGit 操作记住密码
- git bash windows无密码操作
- centos git 记住密码
- git 记住用户名密码
- 让git记住密码
- git 记住用户名密码
- git记住账号密码
- 【转】Git记住密码
- Git设置记住密码
- Git记住用户名密码
- git记住账号密码
- jeecmsv6插件开发步骤
- 每天一个linux命令(48):watch命令
- Sencha(Extjs) Ext.data.Store与Reader结合加载多重嵌套数据对象
- iOS开发中那些高效常用的宏
- Linux grep 命令
- Git bash 操作记住密码
- XAMPP Apache 配置多端口和多域名方法
- 使用AFNetworlk上传多张图片
- HDU 1003:Max Sum
- C#笔记 泛型 Generic
- sftp用户本机登录后,pwd总是在根目录
- PAT 数据结构 02-线性结构2. 一元多项式求导 (25)
- 每天一个linux命令(49):at命令
- 悟空学Linux专栏----第23篇