Reputation: 26294
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
Upvotes: 0
Views: 1229
Reputation: 26294
I upgraded Git to version 2.16.3 and it worked.
chocolatey upgrade git
Upvotes: 1
Reputation: 1329082
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]
Upvotes: 1