No such file or directory - git ls-files - WINDOWS

I am trying to find a way to add Git to a Windows path. Whenever I try to run RakeFiles from the neat IDE of JetBrains, RubyMine, or from GitBash itself, I get an error message that is posted in this header:

No such file or directory - git ls-files 

According to one of the developers, I need to add Git to my window path. I could not find how to fix this error for anything, BUT MAK. Is there anyone who can help me figure out how to fix this using Windows?

+7
source share
1 answer
  • Right-click My Computer and select Properties
  • Click "Advanced System Settings"
  • Click "Environment Variables" in the "System Variables" section, find PATH and add the directory where git.exe is located. Directories are separated by semicolons.

The funny thing is that this simple operation is very inconvenient, especially when your PATH long and people created tools for editing the system path only .

+8
source

All Articles