Can't push git, visual studio. Git failed with a fatal error. fatal: HttpRequestException encountered

前端 未结 9 1956
甜味超标
甜味超标 2020-12-01 13:54

Here is my error on visual studio. I can\'t figure out if there is a config to fix this. Additionally I am restricted from installing git command line tools.



        
相关标签:
9条回答
  • 2020-12-01 14:11

    You code written above is right, but if you can pull and can't push, but you can push just in console and not in VS, and you are behind a corporate proxy, then you might try another approach. It may work for you:

    1. Create GitHub token: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line#creating-a-token
    2. In the .gitconfig file write:

      [credential] 
      authority = *the-token*"
      
    3. Search for the file .gitconfig by command: git config --list --show-origin

    0 讨论(0)
  • 2020-12-01 14:22

    In my case the above didn't work since my google email address for bitbucket had 2 factor authentication. So I had to create a bitbucket app token and in the origin https url I had to put the token that was generated like so https://username:appToken@bitbucket.org/repo/test.git

    0 讨论(0)
  • 2020-12-01 14:26

    Git bash on windows was giving trouble even after typing in the password in the pop up window. I tried with Git Gui and it works fine.

    0 讨论(0)
  • 2020-12-01 14:28

    Cause: GitHub updated their security requirements on the server side. They no longer support TLS 1.0 and 1.1, only 1.2. Older Git Credential Manager for Windows versions used 1.0.

    Solution: Update Git for Windows. Version 2.14.3 and newer include an up-to-date Git Credential Manager for Windows.

    Alternatively you can update only the Git Credential Manager for Windows itself. It supports TLS 1.2 from version 1.14.0 onwards.

    0 讨论(0)
  • 2020-12-01 14:29

    Simply update your Visual Studio to the latest version and this should be fixed. Worked for me.

    0 讨论(0)
  • 2020-12-01 14:29

    In my case, updating git and copying the bin directory cannot fix the error. My solution is checking your git config. First, open git bash. Second, check git config. git config -l The http.proxy and https.proxy would make you cannot update the project successfully. And if you use vpn, and make the 1080 port open, that would make the upload not so smoothly.(Only the case that your vpn is slow)

    0 讨论(0)
提交回复
热议问题