无法通过推Android的工作室与git? [英] Can't push to git via Android studio?

查看:95
本文介绍了无法通过推Android的工作室与git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我克隆从Github上通过的Andr​​oid工作室的仓库。我做了一些更改,code,然后提交和放大器;推没有问题。今天,我做了一些修改code。我犯了他们,但是当我试图把他们也说

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

感谢您的帮助。

Thanks for your help..

推荐答案

显然有没有办法从IDE做到这一点,一些bug必须删除你的遥控器。如果你打开​​你的.git目录中的配置文件中的项目文件夹,后藤底部插入:

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

这篇关于无法通过推Android的工作室与git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆