Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables natively on Windows. WSL 2 is the latest version of this technology, it is a fully native Linux kernel that runs on Windows, which allows you to run Linux applications directly on Windows.
GitHub Desktop is a graphical user interface (GUI) for working with Git and GitHub, it is available for Windows and macOS but not for Linux. However, you can still use it on WSL2 by installing the Windows version of GitHub Desktop inside the WSL environment and then use it to interact with the files and folders shared between Windows and WSL.
Here are the general steps to use GitHub Desktop on WSL2:
Install GitHub Desktop on your Windows 10 machine.
Enable and install WSL2 on your Windows 10 machine
Install a Linux distribution on WSL2 and configure it.
Share your local drive with the Linux distribution in WSL2 by adding the wsl.conf file.
Open the GitHub Desktop on Windows and point it to the shared folder on your WSL2 distribution.
It’s important to note that this configuration may vary depending on your specific setup, and the integration of WSL2 and GitHub Desktop may have some limitations and issues. It’s recommended to check the official documentation for both WSL2 and GitHub Desktop for the most up-to-date information and instructions.