title: Is it possible to completely empty a remote Git repository?
body: <p>Let's say I make a mistake in my first push to a remote Git repository. Can I somehow revert this so that the repository is back to it's initial state? I don't have access to the remote machine, so deleting .git directory is not possible.</p>
  
  <p>The problem, as far as I can see is that you can't "unset" the head.</p>
  
  <p>This is what I (or actually a colleague who asked about this) did (I do a local "remote" repo here so anyone can test this):</p>
  
  <pre><code>mkdir git-remote
  cd git-remote
  git init --bare
  cd ..
  mkdir git-local
  cd git-local
  git clone ../git-remote .
  touch a
  git add a
  git commit -m "initial"
  git push origin master
  </code></pre>
  
  <p>And at this point he realised he pushed the wrong stuff to the remote repository.</p>
  
  <p>The only idea I had is the delete everything from his repo &amp;&amp; git rm &amp;&amp; git push which would still leave the faulty commit there, but the files wouldn't bother a second push.</p>