How can I configure the path to the Git executable in Android Studio?

后端 未结 7 1132
鱼传尺愫
鱼传尺愫 2020-12-11 14:59

How do I configure the path to the Git executable in Android Studio?

I am working in Linux.

\"Enter

相关标签:
7条回答
  • 2020-12-11 15:06

    on command prompt write "where git" it will give the path of git. copy this path and paste in the android studio. it worked for me.

    0 讨论(0)
  • 2020-12-11 15:08

    For Windows, install git.exe and give the install directory path 'C:\Users\\AppData\Local'. After installation paste 'C:\Users\\AppData\Local\Git\bin\git.exe' in Path to Git executable in the Android Studio settings.

    0 讨论(0)
  • 2020-12-11 15:10

    Paste this in a terminal:

    whereis git
    

    or if you get 'command not found' you can try

    where git
    

    You get the path to your Git executable.

    0 讨论(0)
  • 2020-12-11 15:12

    I have done it for Windows 7. Probably you can refer this.

    1. Download the GitHub For Windows client and install it.

    2. After the client successfully installed, connect it with your GitHub account. It should be easy; just follow the wizard.

    3. Then you should add the git.exe location to your "path variable": Otherwise, if you don't want to add to environment variables.

    You can open Android Studio and go to: menu SettingsVersion ControlGit. In the text box next to "Path to Git Executable" you will see "git.exe". Just give it a full path like so: C:\Users...............\git.exe

    0 讨论(0)
  • 2020-12-11 15:18

    To find the path of executables in Ubuntu just open the terminal and type $ which git

    Mostly it will be in /usr/bin/git and now you can set this path in android studio

    0 讨论(0)
  • 2020-12-11 15:19

    Click here to download git

    If you use Ubuntu then write this command $ sudo apt-get install git

    0 讨论(0)
提交回复
热议问题