3

I want publish my code to github but i have problem because I'm getting this error in visual studio.

"Failed to push to the remote repository. See the Output window for more details."

In output window:

Error encountered while pushing to the remote repository: Git failed with a fatal error. HttpRequestException encountered. cannot spawn askpass: No such file or directory could not read Username for 'https://github.com': terminal prompts disabled

I'm trying this Git failed with a > fatal error. could not read Username for but it's doesn't work.

Someone will tell me what else I can do ? I will add that two days ago everything was ok.

Thanks.

Antero00
  • 113
  • 1
  • 1
  • 6

1 Answers1

6

For security purposes, github remove one security protocol to connect to github and break a lot of client.

See this document to fix it:

https://developercommunity.visualstudio.com/content/problem/201457/unable-to-connect-to-github-due-to-tls-12-only-cha.html

Philippe
  • 28,207
  • 6
  • 54
  • 78