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

前端 未结 9 1960
甜味超标
甜味超标 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

提交回复
热议问题