does git reset hard remove commits from remote code example
Example: git reset head force push
git reset --soft HEAD~3 &&
git commit
git push —force-with-lease origin
git reset --soft HEAD~3 &&
git commit
git push —force-with-lease origin