Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't push to git via Android studio?

I cloned a Repository from Github via Android Studio. I made some changes to the code, then committed & pushed without a problem. Today, I made some changes to the code. I committed them but when I tried to push them it says

Can't push, because no remotes are defined

enter image description here Thanks for your help..

like image 264
AruLNadhaN Avatar asked Mar 24 '14 16:03

AruLNadhaN


1 Answers

Apparently there's no way to do it from the IDE, some bug must have deleted your remote. If you open up the config file in your .git directory within your project folder, goto the bottom and insert:

[remote "origin"]
url = https://github.com/YOURPROFILE/YOURREPO.git
like image 170
Wes Eklund Avatar answered Sep 28 '22 19:09

Wes Eklund