简体   繁体   中英

Do I need to install Git for both Windows 10 and WSL?

I'm trying to set up a web development environment using a guide on Medium . The author says we need to install Git for both Windows and for Windows Subsystem for Linux. Git takes up a lot of space. Do we need to install it twice?

I have Visual Studio Code and Ubuntu (WSL). I also installed Git for Windows 10.

Git For Windows differs from the Linux Git .

So, if you want to execute commands in a Windows CMD and a Linux WSL shell, then yes, you would need to install both.

On Windows side, that can mean simply uncompressing the self-extracting archive PortableGit-2.22.0-64-bit.7z.exe anywhere you want, and add it to your PATH.

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