когда я запускаю команду git archive, она возвращает ошибку «fatal: pathspec» Рабочий отчет / RPT0057 / RPT0057_sub_succ1.jrxml «не совпадает ни с одним файлом», почему?
Я гуглю и некоторые говорят, что эта ошибкавсе еще, чтобы файл не был отслежен, но мой случай, кажется, не об этой проблеме, результат состояния git как вставка, как указано ниже:
PS D:\kei_D\CMIS_DEV\CMIS> git status
Refresh index: 100% (7440/7440), done.
On branch Phase2_20190523
Your branch is up to date with 'origin/Phase2_20190523'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Source/DEVB_CMIS/Content/Scripts/ReportParameterPopup.js
modified: Source/DEVB_CMIS/Content/Scripts/minifiedReportParameterPopup.js
modified: Source/DEVB_CMIS/Controllers/ReportController.cs
modified: Source/DEVB_CMIS/DEVB_CMIS.csproj.user
modified: Source/DEVB_CMIS/Web.config
modified: Source/DEVB_CMIS/export/RPT0076B.xls
modified: Source/DEVB_CMIS/export/auto_run.xls
modified: Source/DEVB_CMIS/export/perf.txt
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.ContractPaymentResource.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.ContractResource.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.ConvictionResource.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.ConvictionResource.zh.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.RCPResource.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.ReportResource.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.UserInfoResource.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.UserInfoResource.zh.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.UserRegistrationResource.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/DEVB.CMIS.TextResources.UserRegistrationResource.zh.resources
modified: Source/DEVB_CMIS_Business/obj/Debug/edmxResourcesToEmbed/Models/CMISModel.csdl
modified: Source/DEVB_CMIS_Business/obj/Debug/edmxResourcesToEmbed/Models/CMISModel.msl
modified: Source/DEVB_CMIS_Business/obj/Debug/edmxResourcesToEmbed/Models/CMISModel.ssdl
modified: Source/Mail.Notes/obj/Debug/Mail.Notes.csproj.FileListAbsolute.txt
deleted: Source/export/RPT0076B.xls
deleted: Source/export/auto_run.xls
deleted: Source/export/perf.txt
modified: Working Report/RPT0076B/RPT0076B.jrxml
Untracked files:
(use "git add <file>..." to include in what will be committed)
Source/DEVB_CMIS/Template/auto_run.xlsm
Source/DEVB_CMIS/Web.config.bak
Source/DEVB_CMIS/export/abc.xlsm
Source/DEVB_CMIS/export/perf__20190626150933290.txt
Source/DEVB_CMIS/export/testing.xlsm
Working Report/One_off_script_p2/20190621/
Working Report/RPT0055/
test2.zip
no changes added to commit (use "git add" and/or "git commit -a")
PS D:\kei_D\CMIS_DEV\CMIS>
команда архивирования выглядит следующим образом:
PS D:\kei_D\CMIS_DEV\CMIS> git archive --output=test2.zip HEAD $(git diff --diff-filter=d --name-only 52006e13..3686dd94)
fatal: pathspec 'Working Report/RPT0057/RPT0057_sub_succ1.jrxml' did not match any files
PS D:\kei_D\CMIS_DEV\CMIS>