You can do:
- a tag, referring your current commit on master
- a branch starting from your current master
Then you can:
- push that branch
- push your tag (
git push --tags
) - git rm everything (
git rm -r
) - fill your working tree with the new code
- add, commit, and push that same master with the new content
Another solution is to:
- rename master
- create a new orphan branch named master.