If you accidentally commit sensitive files (like credentials or secret keys) and push them to a remote repository, follow these steps to remove them and ensure they are unrecoverable.
If the commit is the most recent one, you can "amend" it or "reset" it.