Ask Your Question
1

How to obtain the above mentioned output on Windows 11 using Github desktop when the message "/usr/bin/env: ‘bash’: No such file or directory" appears?

asked 2023-07-12 10:03:22 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2023-07-12 10:06:02 +0000

qstack gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-12 10:03:22 +0000

Seen: 9 times

Last updated: Jul 12 '23