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

Menu