Why does Git sometimes give me an error like "fatal: cannot find remote helper for 'https" "
I have been using git for 1 month now. I am pushing my Android projects to Bitbucket.
Sometimes I get an error like
fatal: Unable to find remote helper for 'https'
But as I said, I have been using git for 1 month, it actually works well. I have searched many times. I am using Windows 10 Pro and git -2-12.2.2
source to share
Try resetting (for testing) your path in your CMD session (again, for testing in that CMD session):
set GH=C:\path\to\git2.12.2.2
set PATH=C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%
Then try again.
If that doesn't work, try setting up and registering the ssh key and, as a workaround, use ssh url:
git remote set-url origin git@bitbucket.org:username/repo.git
source to share
When I use windows / cmd or powershell I get this error, but on the same machine when I use gitbash
I don't get the error. Try using gitbash, you will get nicer formatting anyway. Configuring paths and remote urls as mentioned above is most likely a solid solution to the root of the problem, but I haven't had to follow through. I understand that this is not a solution to fix the msg error, but simply using an alternative program that I think is already installed on your computer.
source to share
[[If you are using git built in Android Studio] The problem is that by default the git.exe program that works with Android Studio does not support https. To fix this problem you have to install git and replace the default. Follow these steps:
- Install the latest git from: https://git-scm.com/download/win
- In Android Studio: File> Preferences> Version Control> Git . Under Path to git execute, specify the location of git.exe (for example, C: \ Program Files \ Git \ bin \ git.exe). Then run the test.
If everything is ok, you will see a popup message show git executed successfully and git version.
It's all. Try pulling the code again!
source to share