android studio 使用git中出现的问题

1.  .gitconfig找不到

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

解决方案:

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

 

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

解决方案: 

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

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

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

转载于:https://www.cnblogs.com/wangzix/p/8538790.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值