I have deleted those files from my local repository and then show here as deleted. I also want to remove them from this list. Everytime I use git checkout filename, it removes it from list but it gets restored in the repository also. How can I remove it from the list while keeping the files deleted?
Asked
Active
Viewed 107 times
1 Answers
0
Simple stage then commit the deleted files:
git add --all $(git diff --diff-filter=D --name-only)
# or
git ls-files --deleted | xargs git add --all
Then
git commit -m "delete files"

VonC
- 1,262,500
- 529
- 4,410
- 5,250