How can I reset a remote and local Git repository to remove all commits?
I would like to start fresh with the current Head as the initial commit.
First, follow the instructions in this question to squash everything to a single commit. Then make a forced push to the remote:
$ git push origin +master
And optionally delete all other branches both locally and remotely:
$ git push origin : $ git branch -d