コミットhogehogeにmainブランチを刺す

git reset --hard hogehoge
git push origin @:main

HEADと@は一緒。