Reputation: 4281
I'm getting following dialog in Android Studio on trying to push code to newly created public repo on github.com (Dialog appeared 3 times!)
Confirm ssh key
connecting to host github.com:22 that has key fdsfdfd:dfdf . Do you want to add to know hosts?
Yes or No
After selecting yes
, push is getting failed.
Push failed: Failed with error: Could not read from remote repository.
Note: I've freshly installed git(after uninstalling previous git & restarted PC) & there is no .gitconfig file on root.
How to fix it?
Upvotes: 1
Views: 3175
Reputation: 345
Make sure you have the right permissions on the remote repository. If yes, try re-adding remote repository: VCS -> Git -> Remotes.
Upvotes: 2