Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you encounter the error message "/usr/bin/env: ‘bash’: No such file or directory" on Windows 11 when using Github desktop, you can try the following steps to obtain the desired output:

  1. Check if Git is properly installed on your system by opening your command prompt and typing "git --version". If Git is installed, you should see the version number displayed. If Git is not installed, you can download it from the official website and install it.

  2. Open the Github desktop and go to the repository where you are facing the issue.

  3. Click on the "Settings" tab and then click on the "Advanced" tab.

  4. In the "Shell" section, select the option "Command Prompt" instead of "Git Bash".

  5. Save the changes and try running the command again.

If the issue persists, you can try uninstalling and reinstalling Github desktop or reset the default shell settings in your system.