简体   繁体   中英

Android Studio: How to integrate Git from Windows 10 Ubuntu bash?

Yesterday I installed bash on Windows 10 and also installed Git on it. It works perfectly fine. Following that, I changed the path of the Terminal in Android Studio from "cmd.exe" to "bash.exe" so I can have the bash shell instead of the cmd shell. But now Android Studio cannot find Git (because on Windows it expects a Git.exe) and I would like to know if it is possible to integrate the bash git into Android Studio (just as it does with the Windows .exe version).

According to this article you are running a kind-of version of Linux. The article says it is a Windows Subsystem for Linux which is like the opposite of Wine .

Because of this, you might have more success trying to install the Linux version of everything from the bash shell - including Android Studio.

This way you will not be mixing and matching two System Environments more than what you already have.

Try GitWrap https://github.com/ardevd/gitwrap/releases

This wrapper pipes output from WSL to windows and also works on android studio claimed by the developer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM