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.
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:
In the .gitconfig
file write:
[credential]
authority = *the-token*"
Search for the file .gitconfig
by command: git config --list --show-origin
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
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.
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.
Simply update your Visual Studio to the latest version and this should be fixed. Worked for me.
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)