我正在尝试找到一种将 Git 添加到 Windows 路径的方法。每当我尝试从 JetBrains 简洁的 IDE、RubyMine 或 GitBash 本身运行 RakeFiles 时,我都会收到错误消息,该标题发布在以下位置:
No such file or directory - git ls-files
根据一位开发人员的说法,我需要将 Git 添加到我的 Windows 路径中。除了 Mac,我还没有找到如何修复此错误的方法。有没有人可以帮助我弄清楚如何使用 Windows 解决此问题?
最佳答案
- 右键单击“我的电脑”并选择属性
- 点击高级系统设置
- 点击Environment Variables,在System Variables下,找到
PATH
,添加git.exe
所在目录。目录以分号分隔。
有趣的是,这个简单的操作很不舒服,尤其是当你的 PATH
很长并且 people created tools, only to edit system path 时。 .
关于ruby - 没有这样的文件或目录 - git ls-files -- WINDOWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9793806/