【发布时间】:2017-03-16 17:58:54
【问题描述】:
我在 Git bash 中运行这两个命令。
为什么他们的行为不同?他们不应该做同样的事情还是我错过了什么?
git diff > D:\Patches\afterWGComment.txt
在D:/ 中创建文件PatchesafterWGComment.txt
git diff > D:/Patches/afterWGComment.txt
在D:/Patches/中正确创建文件afterWGComment.txt
请注意,D:/Patches/ 文件夹在运行上述命令之前存在。
【问题讨论】:
标签: git bash directory command