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 native
rem