Git Diff Python:Python无法打开文件。从目录中删除所有“\”

2024-10-01 09:31:22 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图使用我的自定义python脚本git diff一个文件时,我得到了错误cannotopenfile,并显示了目录中所有的'\'都被删除了。在

.gitconfig配置:

[diff "zip"]
    textconv = python C:\\Users\\user\\Documents\\git-xlsm-project\\xlsm-git-diff-test\\git_diff_xlsm.py

尝试执行git diff时出现以下错误:

^{pr2}$

Tags: 文件git目录project脚本错误diffzip