cmder: [Bug] "bash: git: command not found"

Version Information

Cmder version: v1.3.20
Operating system: Windows 10 Pro 22H2 (with all updates)

Cmder Edition

Cmder Full (with Git)

Description of the issue

Any command with git, fire an error: “bash: git: command not found”

How to reproduce

In Windows 10 Pro 22H2

  1. Install to system a Git from official site https://git-scm.com/
  2. Run Cmder with standard configuration
  3. Change standard configuration to default task on startup to {bash::bash}
  4. Run Cmder and working good
  5. Uninstall system installed Git
  6. Run Cmder, type any git command and it not working with error “bash: git: command not found”

Additional context

Google Translate : Git was already installed on my system, which was downloaded from the official website (https://git-scm.com/) and installed. When I wanted to work with Cmder, I downloaded the archive with the latest version (Full version with Git), unpacked it and ran the Cmder.exe file, the program was fully initialized, I went to the settings and changed the default task to {bash::bash} and saved settings and restarted the program. Everything was working fine until I remembered that Git was already installed and uninstalled it. After that, Cmder with a Bash shell doesn’t see Git from its own package.

I uninstalled Cmder unpacked again but nothing helps, when I write any git command I get “bash: git: command not found”

Original Ukrainian text: В моєї системі вже був встановлений Git який був скачаний з офіційного сайту (https://git-scm.com/), та встановлений. Коли я захотів працювати з Cmder я скачав архів з останнею версією (Full version with Git), розпакував його та запустив файл Cmder.exe, пройшла повна ініціалізація програми, я зайшов в налаштування та змінив задачу по замовчанну на {bash::bash} зберіг налаштування та перезапустив програму. Все працювало добре, поки я не згадав про встановлений вже Git, та видалив його через Uninstall. Після цього Cmder з оболонкою Bash не бачить Git з власного пакунку.

Я видаляв Cmder розпаковував заново але нічого не допомагає, коли я пишу будm-яку команду git, отримую відповідь “bash: git: command not found”

Screenshot of startup task: Знімок екрана 2022-11-18 191113

Checklist

  • I have read the documentation.
  • I have searched for similar issues and found none that describe my issue.
  • I have reproduced the issue on the latest version of Cmder.
  • I am certain my issues are not related to ConEmu, Clink, or other third-party tools that Cmder uses.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

The unreleased build is just a zip file just like the released build. Just unzip it into your Cmder Folder.

You could also simply add 2 missing files to your existing install and it will fix it.

Add git-prompt.sh and cmder.sh to %cmder_root%\vendor\git-for-windows\etc\profile.d

No problem. You got hit with a double bug.

  1. The current release is missing those files.
  2. Even if the files were there it still would have failed if either of the Git folders in the program files locations were left behind by the git uninstall.

The two scripts I gave you were updated to look for a git.exe in those locations.