I would like to delete some files from a specific commit or revert the commit in Git. I accidentally added some files to my commit and I want to discard them before pushing my project to my remote repository.
I've been trying with git revert
but it didn't work out.