FluxEngine
FluxEngine

Reputation: 13280

get rid of deleted files when running git status

When running git status It shows a long list of deleted files in the not staged area. How do you stop the deleted files from showing up in the unstaged area?

The list of deleted files are from a version feature that we do not use anymore.

Upvotes: 1

Views: 1427

Answers (1)

Zombo
Zombo

Reputation: 1

How do you stop the deleted files from showing up in the unstaged area?

If you want to stop them from showing up in the unstaged area, then you need to tell Git that you are not using them anymore

rm oldfile
git add oldfile
git commit -m 'removed old file'

or better yet

git rm oldfile
git commit -m 'removed old file'

Upvotes: 4

Related Questions