Problems with Git in Android studio

Source: Internet
Author: User

1.. gitconfig not Found

After configuring Git for the first time in as, a serious error occurred, and when you right-click Git bash here in a local repository, your. gitconfig file will not be found, error xxx/xxx/%homedriver%%home....%: Can ' t Find. Gitconfig, and so on, but I found that my computer user variables do not have these two things, do not know whether it was deleted or not originally

Solution:

To create a new HOME in the user variable, the value of the variable is the path that contains the. gitconfig. Gitconfig default below user/xxx/, you can copy one copy, which also implements the modification. Gitconfig Default Path effect

2. As error: Push failed:failed with error:could not read from remote repository.

Solution:

This was probably an Intellij problem. Your key is managed natively by SSH, and Intellij have it ' s own SSH program.

Go to the settings, search Git->ssh executable and then choosenative

From Https://stackoverflow.com/questions/24688700/android-studio-push-failed-fatal-could-not-read-from-remote-repository

Problems with Git in Android studio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.