How does git delete the code of the remote warehouse and re-push it?

I"ve been working on a project for a long time, but I"m not very good at playing with git. Now I haven"t submitted the local code to master for a long time, because the local code has changed too much. I don"t want to push pull anymore. I want to delete all the code on master and re-push the local project to master.

how to do this?
Mar.16,2021

find an empty folder to clone the project, delete the content, push. Or create a new branch to save the current code, clear the master, merge branch

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e60a32-458c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e60a32-458c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?