We have an Assembla remote repo. Assembla doesn't offer free private repos now, so we want to re-use one of our old ones. The repo has a master branch and a lot of files/commits.
How can we get rid of everything, including all files and history, to allow us to start again with a new project?
First I have an up-to-date pull of the repo.
I tried deleting the remote master branch thusly:
git push origin :master.
This gives the error :
remote: error: By default, deleting the current branch is denied, because the next remote: error: 'git clone' won't result in any file checked out, causing confusion.
So I tried creating a new branch, pushing it, then from the other branch deleting master, thusly:
git checkout -b tempy
git push origin tempy
git push origin :master
I get the same error.
I could switch back to master, delete all the files locally, then commit and push, but his leaves a lot of unwanted history.
Any ideas?