How to remove deleted file from git-lens VSCode

2.2k Views Asked by At

Vs Code Git-Lens

How can I removed these deleted files from git lens using vs code

2

There are 2 best solutions below

0
On

It sounds as though you want to continue using version control; you want to delete those files locally, while keeping them in the remote repository, but not have the files appear in the Source Control panel? Alternatively, can you further describe your goal? Another possible solution would be to add these files to a local gitignore file.

0
On

Those files are versioned on the remote repository, but you deleted them locally (that's why you see them among changed files). If you commit those deleted files and push them, you'll see them disappear both from your PC and the remote repository.

In case you don't want deleted files to be shown among changed ones, I'm afraid you can't achieve that in GitLens, but you could do it via console with: git diff --name-status --diff-filter=d