Git保存密码09-09
git 保存密码 for windows
1.First, download git-credential-winstore and install it in your git bin directory.
首先下载git-credential-winstore.exe 然后移动到git的bin目录下
2.Next, make sure that the directory containing git.cmd is in your Path environment variable.
The default directory for this is C:\Program Files (x86)\Git\cmd on a 64-bit system or
C:\Program Files\Git\cmd on a 32-bit system. An easy way to test this is to launch a command prompt and type git.
If you don't get a list of git commands, then it's not set up correctly.
确保git目录添加到了,系统环境变量
3.Finally, launch a command prompt and type:
最后执行命令
git config --global credential.helper winstore
Or you can edit your .gitconfig file manually:
或者直接手动编辑.gitconfig 文件添加:
git config --global -e
[credential]
helper = winstore
4.Once you've done this, you can manage your git credentials through Windows Credential Manager
which you can pull up via the Windows Control Panel.
一旦完成上述步骤,再次输入账户密码即可保存
- git回滚上一版本 2017-05-31
- git简介--3--多分支开发注意事项 2016-09-09
- git简介--2--分支重命名 2016-09-09
- git简介--1--基本操作 2016-09-09