I have the following situation with my git repository
Commit N: My latest commit (3 file changes)
Commit N-1: Some good commit (2 file changes)
Commit N-2: Some problematic commit (2 files changes, in one of them your password says hi to the world) .
.
.
.
Commit 1
So, all those commits are already pushed to the remote repository.
What I want to achieve:
Have everthing stay the same, but modify the remote commit n-2 in a way that i would modify one of the files and remove the area where the password is not revealed. Also, after the update, the password should not be visible in the commit history. But i dont wanna loose any of my current changes.