The visual studio stopped sending my commits to the bitbucket and this error appears
Error encountered while cloning the remote repository: Git faile
I just solved this same issue for myself in Visual Studio 2019.
In Tools -> Nuget Package Manager -> Package Manager Console
This command will update the GitForWindows version (as well as the Git Credentials manager) for you.
Install-Package GitForWindows -Version 2.23.0
Reference: https://www.nuget.org/packages/GitForWindows/