1. First use git log --name-only to list changed files (this includes modified, deleted, and newly added files)
2. Then use git archive to export the files listed in the first step. If a deleted file is encountered at this time, it will report
fatal:pathspec 'xxxxxx.txt' did not match any files
How to solve this problem, because it affects the git archive export and no longer executes.
I think your git archive command may not work, right? There may be something wrong with the format. By the way, why don't you post your detailed command format? In this way we can prescribe the right medicine!
Has no one encountered it?