Fix Android Studio Git push error
Recently I started getting the error: Failed with error: Could not read from remote repository. when pushing a repository to GitHub in Android Studio.
The solution is to switch Android Studio to the native Git client:
Preferences -> Version Control -> Git -> Native
There’s also a test button to check the path to the native Git client is correct before saving.
I’m not sure what caused the error as it was working and then suddenly it started showing the error. I know GitHub did remove support for weak ciphers recently so it might be that although it could also be something else.
Either way switching from the built-in Git client to the native one fixed the issue for me.