title: Unable to Git-push master to Github - 'origin' does not appear to be a git repository / permission denied
body: <p>This question is related to my problem in <a href="https://stackoverflow.com/questions/904353/unable-to-understand-git-branch-merge-and-rebase/907799#907799">understanding rebase, branch and merge</a>,
  and to the problem</p>
  
  <blockquote>
    <p>How can you commit to your github account as you have a teamMate in your remote list?</p>
  </blockquote>
  
  <p>I found out that <a href="http://ubuntuforums.org/showthread.php?t=850161" rel="nofollow noreferrer">other people</a> have had the same problem.
  The problem seems to be related to /etc/xinet.d/.</p>
  
  <p><strong>Problem:</strong> unable to push my local branch to my master branch at Github</p>
  
  <p>I run</p>
  
  <pre><code>git push origin master
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>fatal: 'origin' does not appear to be a git repository
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>The error message suggests me that the branch 'origin' is not in my local git repository. This way, Git stops connecting to Github.</p>
  
  <p>This is strange, since I have not removed the branch 'origin'.</p>
  
  <p>My git tree is</p>
  
  <pre><code>  dev
  * master
    ticgit
    remotes/Math/Math
    remotes/Math/master
    remotes/origin/master
    remotes/Masi/master
  </code></pre>
  
  <p><strong>How can you push your local branch to Github</strong>, while you have a teamMate's branch in your local Git?</p>
  
  <hr>
  
  <p>VonC's answer solves the main problem.
  I put a passphares to my ssh keys.</p>
  
  <p>I run </p>
  
  <pre><code>$git push github master     
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>Permission denied (publickey).
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>It seems that I need to give the passphrase for Git somehow.</p>
  
  <p><strong>How can you make Github ask for your passphrase rather than relying on the ssh key?</strong></p>