To change history commits Rollback to some last hash then change everything then ammend changes to that commit git reset --hard 7ab8bc40eef3c8a95271152dc1cfb63a0e4318a9 #add files git add . git commit --amend --no-edit git push origin -f