I have been working on a Net Core project in Visual Studio.
I just realized that all of the image files I have placed in my wwwroot
folder have been uploaded to my GitHub repository.
I would like to remove these files from the repository but retain them locally in the VS project.
I have created a .gitignore
file and placed it in the wwwroot
directory to prevent this from happening again, but am not sure how to remove the files currently uploaded.
I have made several commits since the files were uploaded (but before I realized they were there) so I would prefer not to revert to that point.