title: fatal: 'origin' does not appear to be a git repository
body: <p>I've a repository <code>moodle</code> on my Github account which I <code>forked</code> from the official repository.</p>
  
  <p>I then cloned it on my local machine. It worked fine. I created several branches (under the <code>master</code> branch). I made several commits and it worked fine. </p>
  
  <p>I don't know how I'm getting the following error when I do : <code>git push origin master</code></p>
  
  <pre><code>fatal: 'origin' does not appear to be a git repository
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>How do I resolve the error without effecting my repository on Github?</p>
  
  <p>I'm using <code>Ubuntu 12.10</code></p>
  
  <p>The contents of my <code>.git/config</code> after doing <code>cat $(git rev-parse --show-toplevel)/.git/config</code> gives:</p>
  
  <pre><code>[core]
      repositoryformatversion = 0
      filemode = true
      bare = false
      logallrefupdates = true
  [branch "master"]
  [branch "MOODLE_23_STABLE"]
  [branch "MOODLE_24_STABLE"]
  [remote "upstream"]
      url = git://git.moodle.org/moodle.git
      fetch = +refs/heads/*:refs/remotes/upstream/*
  </code></pre>