title: How to push to a local remote?
body: <p>I'm having a hard time pushing my commits to a remote repository with libgit2sharp. Using the git bash it works fine.</p>
  
  <p>The remote is addressed via UNC like "//computer_name/remote.git". So it's a folder on a machine in the local network which has an accessible folder.</p>
  
  <p>Cloning it to a local repo with libgit2sharp worked just fine and constructing a remote was successful too with</p>
  
  <p><code>Remote remote = localrepo.Network.Remotes["origin"];</code></p>
  
  <p>Now when I try pushing to the remote with:</p>
  
  <p><code>localrepo.Network.Push(remote, "HEAD", "origin");</code></p>
  
  <p>I get the exception in git_push_add_refspec() in Proxy.cs</p>
  
  <pre><code>An error was raised by libgit2. Category = Invalid (Error).
  Not a valid reference 'origin'
  </code></pre>
  
  <p>So then I tried:</p>
  
  <p><code>repo.Network.Push(remote, "HEAD", @"refs/remotes/origin/master");</code></p>
  
  <p>and got the exception in git_push_finish() in Proxy.cs</p>
  
  <pre><code>An error was raised by libgit2. Category = Net (Error).
  Remote transport doesn't support push.
  </code></pre>
  
  <p>Is there a right way to do this or is there a support problem for my usecase?
  Thanks in advance!</p>
  
  <p><strong>[UPDATE]</strong></p>
  
  <p>Now my command looks like this</p>
  
  <pre><code>repo.Network.Push(remote, "HEAD", @"refs/remote/origin/master", pushStErrHnd, null);
  </code></pre>
  
  <p>The <code>PushStatusErrorHandler</code> has only one line of code in which it should write the <code>PushErrorStatus</code> to console. But console remains blank and then the above exception occurs.</p>
  
  <p><strong>[UPDATE 2]</strong></p>
  
  <p>The static variable Repository.Version was 0.9.5 when I experienced the above.</p>