How to fix "git-sh-setup: file not found" in windows?

Monu Kumar Source

I was using Git and it was working fine but after a restart, it shows the following error:

git-sh-setup: file not found

How to solve this issue?

windowsgit

Answers

answered 1 week ago Pierre Arnaud #1

I've run into this issue with the latest Git on Windows (v2.17.1.windows.2) and solved it both for cmd and PowerShell by adding two directories to PATH:

  • C:\Program Files\Git\usr\bin
  • C:\Program Files\Git\mingw64\libexec\git-core

enter image description here

comments powered by Disqus