Git rm several files?

前端 未结 11 1979
长发绾君心
长发绾君心 2020-12-15 05:08

How do I easily remove several files without manually typing the full paths of all of them to git rm? I have plenty of modified files I\'d like to keep so remov

11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 05:38

    You simply use

    find . -name '*.DS_Store' | xargs git rm
    

    to remove many files match the wildcards.

提交回复
热议问题