If you want to simply add all the deleted files to stage then you can use git add .
This is the easiest way right now with git v2.27.0
. Note that using *
and .
are different approaches. Using git add *
would only add currently present files whereas git add .
would also stage the files deleted with rm
command.
It's obvious but worth mentioning that other files which have been modified would also be added to the staging area when you use git add .
.