8

Every time I push my changes, no matter what branch I am on, it prompts for username. Once I type in my username an alert pops up prompting me to input my password. Once I do it, then changes are pushed. This just started happening and is annoying to type in my login info each time I push changes. Any suggestions?

$ git push fatal: HttpRequestException encountered. An error occurred while sending the request. Username for 'https://github.com': jhower

tryingToLearn
  • 7,566
  • 8
  • 55
  • 84
jhower
  • 81
  • 1
  • 2

3 Answers3

4

jhower,

Update to the latest git and it should fix the issue.

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/488

iceveda06
  • 545
  • 7
  • 18
1
  1. Firstly you need to download and install the latest version of the Git Windows Credential Manager.
    Here is the link to it on GitHub. https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/latest
  2. Restart your machine
Hoang Pham
  • 11
  • 2
0

If you use visual studio integration with git, try following after installing git credential manager in the following link(https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/latest)

copy all files in $env:USERPROFILE\bin\*.* to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core.

You may need admin privilege.

franiis
  • 1,292
  • 1
  • 15
  • 29