使用git archive 导出文件时碰到已删除的文件会报错,如何解决?
大家讲道理
大家讲道理 2017-05-02 09:47:45
0
2
931

1.首先使用git log --name-only列出变更的文件(这其中包括有修改的,有删除的,有新增的文件)

2.然后使用git archive导出第一步列出的文件,此时若碰到已删除的文件,就会报 fatal:pathspec 'xxxxxx.txt' did not match any files

怎么才能解决这个问题,因为它有影响到git archive导出不再执行。

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
仅有的幸福

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?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!