Ok I got some help and the problem was that i was trying to delete the commits when i was detached. I used the Checkout(Detached) button on the right click menu of the commit. after i moved to the branch properly i did
git reset --hard
back to the settings button commit, pushed and then it was fixed