Proper way to remove unwanted files with git filter-branch without git rm failing

前端 未结 4 1132
迷失自我
迷失自我 2020-12-10 18:58

I have a project of an SNMP agent where the related MIB files (*.smiv2 files) were developed along with it, but now I want them in a separate git repository.

In orde

4条回答
  •  死守一世寂寞
    2020-12-10 19:26

    xargs's -r|--no-run-if-empty flag might be cleaner:

    ... | xargs--no-run-if-emptygit rm --cached --ignore-unmatched

提交回复
热议问题