How to delete a Git .env environment file after it has been pushed to the remote repository?

I have inadvertently pushed an .env file to the remote repository.

The file has been committed, so it’s already in the remote repository and can be viewed on Github. But obviously this should not be the case, since it has sensitive password usernames…

How can I make Git remove that file from remote, so no one can see it anymore?

See also  Start Git repository and first commit
Loading Facebook Comments ...
Loading Disqus Comments ...