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?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s