I have 8 commits but I need to go back and change one of my commits. I need to remove two files from it.
What I tried was
git checkout 3043b71 //this is the commit that I want to change
git rm src/tcp.rs
git rm src/ip.rs
git commit --amend
git checkout master
git push -f
But it seems that nothing has changed, what did I do wrong?