Reputation: 13280
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
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