With Git, how do I commit a load of deleted files in one go?

前端 未结 2 1367
青春惊慌失措
青春惊慌失措 2021-01-16 20:58

I have a load of deleted files I want to commit.

But I don\'t want to type git rm for each one.

If i type git rm . -r it will try and delete everything.

2条回答
  •  无人共我
    2021-01-16 21:40

    git commit -a

    should work as long as those are your only changes (it will add all unstaged files and commit).

提交回复
热议问题