【发布时间】:2016-06-02 20:13:05
【问题描述】:
简而言之
预期:使用git credentials cache后,只会提示输入一次密码。 实际:每次拉取密码时都会提示我。
详情
我使用的是 Windows 7 Pro.、git 1.9.4 和 git-extensions 2.48.03。
我正在尝试缓存 git 凭据键入
git config credential.helper cache
它在 Cygwin 和 git-extensions bash 终端中都试过了(在 git 扩展中是 ctrl+G) 在这两种情况下,每次拉取时都会提示我输入密码。
我从控制台复制:
$ git config --global credential.helper cache
$ git pull
<git local repo>'s password:
Already up-to-date.
$ git pull
<git local repo>'s password:
Already up-to-date.
$ cat ~/.gitconfig
[merge]
tool = kdiff3
[mergetool "kdiff3"]
path = C:/Program Files (x86)/KDiff3/kdiff3.exe
[diff]
guitool = kdiff3
[difftool "kdiff3"]
path = C:/Program Files (x86)/KDiff3/kdiff3.exe
[core]
editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor
autocrlf = True
[credential]
helper = cache
【问题讨论】:
标签: git cygwin credentials git-bash