android studio 使用git中出现的问题

1.  .gitconfig找不到android

第一次在as中配置git后,出现了严重的错误,当你在一个本地仓库中 右键 git bash here后,你的 .gitconfig 文件就会找不到,出现错误 xxx/xxx/%HOMEDRIVER%%HOME....%: can't find .gitconfig, 之类的错误,可是我发现个人电脑的用户变量并无这两个东西,不知道是被删了仍是原本就没有git

解决方案:android-studio

在用户变量中新建一个   HOME, 变量值为包含有 .gitconfig 的路径,.gitconfig默认在User/xxx/下边,能够拷贝一份,这样也实现了修改 .gitconfig默认路径的效果bash

 

2. AS 报错:Push failed: Failed with error: Could not read from remote repository.ssh

解决方案: 
spa

This is probably an Intellij problem. Your key are managed natively by ssh, and Intellij has it's own ssh program.code

Go to the settings, search git->ssh executable then choose nativerem

来自  https://stackoverflow.com/questions/24688700/android-studio-push-failed-fatal-could-not-read-from-remote-repositoryget

相关文章
相关标签/搜索