【发布时间】:2018-09-11 04:50:06
【问题描述】:
我尝试使用此答案,但没有成功。 https://stackoverflow.com/a/5343146/148844
C:\Users\Chloe\workspace\catalyst_research>git --version
git version 2.15.1.windows.2
C:\Users\Chloe\workspace\catalyst_research>git config --global credential.helper manager
C:\Users\Chloe\workspace\catalyst_research>git pull
此时会弹出一个GUI对话框。
fatal: HttpRequestException encountered.
An error occurred while sending the request.
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for 'https://github.com': email@domain.com
Password for 'https://email@domain.com@github.com':
remote: Counting objects: 10, done.
...
2 files changed, 11 insertions(+), 5 deletions(-)
C:\Users\Chloe\workspace\catalyst_research>git config --global credential.helper "cache --timeout=2592000"
C:\Users\Chloe\workspace\catalyst_research>git pull
fatal: HttpRequestException encountered.
An error occurred while sending the request.
git: 'credential-cache' is not a git command. See 'git --help'.
Username for 'https://github.com': email@domain.com
Password for 'https://email@domain.com@github.com':
git: 'credential-cache' is not a git command. See 'git --help'.
Already up to date.
C:\Users\Chloe\workspace\catalyst_research>git pull
fatal: HttpRequestException encountered.
An error occurred while sending the request.
git: 'credential-cache' is not a git command. See 'git --help'.
Username for 'https://github.com': ^C
【问题讨论】: