0

I tried to use this answer, but it didn't work. 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

It pops up a GUI dialog box at this point.

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 protected]
Password for 'https://[email protected]@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 protected]
Password for 'https://[email protected]@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
asked Apr 1, 2018 at 22:47

2 Answers 2

1

First, keep the manager as credential helper:

git config --global credential.helper manager

Second, when the popup appears, enter your GitHub account username/password.

Then, the subsequent Git commands won't ask you for your credentials again.

You can check in the Windows Credential Manager if your credentials are indeed correctly associated to https://github.com.

Username for 'https://github.com': [email protected]

Note: your username for GitHub should be your GitHub account username, not [email protected]

answered Apr 1, 2018 at 22:59
Sign up to request clarification or add additional context in comments.

Comments

1

I upgraded Git to version 2.16.3 and it worked.

chocolatey upgrade git
answered Apr 1, 2018 at 23:13

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.