解决 :android studio 提交代码到git/github失败 Could not read from remote repository
来源:互联网 发布:网络贷款利息如何计算 编辑:程序博客网 时间:2024/05/18 13:43
通常 有些项目需要复制一份,修改包名,某些配置,再修改接口及界面就可以当做一个新项目使用。但是如果之前的项目关联了git/github,新项目再提交到git或github时就会:Could not read from remote repository。(除了提交,同步服务器最新代码也会报这个错误)
网上一些建议是 file-->setting-->version control-->git-->将 ssh executable 修改 native,然后使用。可是,复制原项目当新项目使用,按照网上建议无法解决问题。
其实,这类问题很好解决,就是git的一些配置问题,配置,配置,配置!!
解决步骤:
前提:已经将该项目设为git 仓库。
比如我的一个项目名称: IsIs-masteer:
当提交时报错:
这时,打开该项目目录-->.git文件夹-->用notepad打开config文件,问题就在url上:
可以再打开你提交到git/github成功的别的项目,对比url就知道
将url修改成你的github路径,比如我的github路径:
url=https://github.com/66668/IsIs-masteer.git:
然后回到android studio 提交就没问题了:
github上就可以查看是否更新了:
完美解决!!
阅读全文
0 0
- 解决 :android studio 提交代码到git/github失败 Could not read from remote repository
- [已解决]Android studio git报错 could not read from remote repository
- git 中github clone "Permission denied (publickey). fatal: Could not read from remote repository."
- 【Git & GitHub】解决办法:Could not read from remote repository.Please make sure you have the...
- 解决Could not read from remote repository问题,为GitHub账号添加SSH Keys。图片案例
- Git Pull Failed: Could not read from remote repository
- Git 解决Bug:fatal: Could not read from remote repository ——诺诺"涂鸦"记忆
- Android Studio 2.1 Beta Fetch failed fatal: Could not read from remote repository
- fatal: Could not read from remote repository
- Could not read from remote repository.
- Could not read from remote repository
- 遇到从github git clone不下来,报Permission denied (publickey). fatal: Could not read from remote repository.
- github clone "Permission denied (publickey). fatal: Could not read from remote repository."
- github常见操作和常见错误! fatal: Could not read from remote repository.
- github Permission denied (publickey). fatal: Could not read from remote repository.
- Github连接不上:Permission denied (publickey).fatal: Could not read from remote repository.
- git: Permission denied(publickey). fatal:Could not read from remote repository.
- Windows平台下IDEA中git出现could not read from remote repository解决方案
- Android 一个简单的登录界面(一)
- 魔幻冒险类VR游戏《无界术士》即将登陆Steam平台
- toString()、String.valueOf()、(String)的比较
- 斐波那契序列-java
- Protocol Buffer技术详解(语言规范)
- 解决 :android studio 提交代码到git/github失败 Could not read from remote repository
- WebAPI 后台调用 采用httpclient
- 一对一映射
- 二进制数位数扩展方法
- CSS——textarea多行文本框禁止拖动问题解决
- 限制textfiled输入字符长度
- Win 安装 lua 环境
- 使用batch insert解决MySQL的insert吞吐量问题
- eclipse中应用struts2框架后,找不到welcome-file中jsp文件