title: pushing to a git repository does not work
body: <p>I am just starting out with GIT (i'm coming from cvs) and would like to set up something akin to cvs/svn with Git.  I performed the following steps:</p>
  
  <pre><code>cd o:/repository
  git init
  
  cd &lt;working directory&gt;
  git clone o:/repository
  </code></pre>
  
  <p>i now created a file called file.txt with some content
  doing a "git status" lists appropriate changes.</p>
  
  <p>I then do </p>
  
  <pre><code>git add file.txt
  git commit file.txt
  </code></pre>
  
  <p>and both seem to work fine.</p>
  
  <p>When i do
  <code>git push</code>, i get the following error:</p>
  
  <pre><code>No refs in common and none specified; doing nothing.
  Perhaps you should specify a branch such as 'master'.
  fatal: The remote end hung up unexpectedly
  error: failed to push some refs to 'o:/repository'
  </code></pre>
  
  <p>I tried doing a pull first, as well as specifying origin and master variations to the push command but none work.</p>
  
  <p>Can someone please tell me what i am missing.  I am running Windows 7 64 bit.</p>
  
  <p>Ps. I also tried</p>
  
  <pre><code>git push origin master
  </code></pre>
  
  <p>and i get the following:</p>
  
  <pre><code>Counting objects: 3, done.
  Writing objects: 100% (3/3), 251 bytes, done.
  Total 3 (delta 0), reused 0 (delta 0)
  Unpacking objects: 100% (3/3), done.
  remote: error: refusing to update checked out branch: refs/heads/master
  remote: error: By default, updating the current branch in a non-bare repository
  remote: error: is denied, because it will make the index and work tree inconsistent
  remote: error: with what you pushed, and will require 'git reset --hard' to match
  remote: error: the work tree to HEAD.
  remote: error:
  remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
  remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
  remote: error: its current branch; however, this is not recommended unless you
  remote: error: arranged to update its work tree to match what you pushed in some
  remote: error: other way.
  remote: error:
  remote: error: To squelch this message and still keep the default behaviour, set
  remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
  To O:/repository
   ! [remote rejected] master -&gt; master (branch is currently checked out)
  error: failed to push some refs to 'O:/repository'
  </code></pre>