search

Home  >  Q&A  >  body text

When using git archive to export files, an error will be reported when a deleted file is encountered. How to solve it?

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.

大家讲道理大家讲道理2871 days ago1000

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-02 09:49:45

    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!

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:49:45

    Has no one encountered it?

    reply
    0
  • Cancelreply