A commit was pushed to branch random-tests
that included some sensitive information by accident. The branch was not going to be used again, so I just force deleted from remote and local, thinking that was going to clear out any commits in that branch. I was wrong. The commits are still there even though the branch itself is gone.
This was the first commit to that branch before it split off from master
. Since the branch is deleted and that was the first commit on that branch, how do I delete that problematic commit without affecting anything else?