Add and remove multiple files from a Git repo that have already been deleted from disk


If you simply run:

git add -u

git will update its index to know that the files that you’ve deleted should actually be part of the next commit. Then you can run “git commit” ( eg: git commit -m “Deleted files manually”) to check in that change.

Or, if you run:

git commit -a

It will automatically take these changes (and any others) and commit them.

Codeigniter WordPress Developer Kerala, India

Why Codeigniter is best?

Advertisements