Git rm several files?

前端 未结 11 1980
长发绾君心
长发绾君心 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:31

    For removing multiple files at once, you might want to checkout the answer here

    You can delete the files that you don't want and run this command: git rm $(git ls-files --deleted)

提交回复
热议问题