title: How can I find the location of origin/master in git, and how do I change it?
body: <p>I'm a Git newbie.  I recently moved a Rails project from Subversion to Git.  I followed the tutorial here: <a href="http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/" rel="noreferrer">http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/</a></p>
  
  <p>I am also using unfuddle.com to store my code.  I make changes on my Mac laptop on the train to/from work and then push them to unfuddle when I have a network connection using the following command:</p>
  
  <pre><code>git push unfuddle master
  </code></pre>
  
  <p>I use Capistrano for deployments and pull code from the unfuddle repository using the master branch.</p>
  
  <p>Lately I've noticed the following message when I run "git status" on my laptop:</p>
  
  <pre><code># On branch master
  # Your branch is ahead of 'origin/master' by 11 commits.
  #
  nothing to commit (working directory clean)
  </code></pre>
  
  <p>And I'm confused as to why.  I thought my laptop was the origin... but don't know if either the fact that I originally pulled from Subversion or push to Unfuddle is what's causing the message to show up.  How can I:</p>
  
  <ol>
  <li>Find out where Git thinks 'origin/master' is?</li>
  <li>If it's somewhere else, how do I turn my laptop into the 'origin/master'?</li>
  <li>Get this message to go away. It makes me think Git is unhappy about something.</li>
  </ol>
  
  <p>My mac is running Git version 1.6.0.1.</p>
  
  <hr>
  
  <p>When I run <code>git remote show origin</code> as suggested by dbr, I get the following:</p>
  
  <pre><code>~/Projects/GeekFor/geekfor 10:47 AM $ git remote show origin
  fatal: '/Users/brian/Projects/GeekFor/gf/.git': unable to chdir or not a git archive
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>When I run <code>git remote -v</code> as suggested by Aristotle Pagaltzis, I get the following:</p>
  
  <pre><code>~/Projects/GeekFor/geekfor 10:33 AM $ git remote -v
  origin  /Users/brian/Projects/GeekFor/gf/.git
  unfuddle    git@spilth.unfuddle.com:spilth/geekfor.git
  </code></pre>
  
  <p>Now, interestingly, I'm working on my project in the <code>geekfor</code> directory but it says my origin is my local machine in the <code>gf</code> directory.  I believe <code>gf</code> was the temporary directory I used when converting my project from Subversion to Git and probably where I pushed to unfuddle from.  Then I believe I checked out a fresh copy from unfuddle to the <code>geekfor</code> directory.</p>
  
  <p>So it looks like I should follow dbr's advice and do:</p>
  
  <pre><code>git remote rm origin
  git remote add origin git@spilth.unfuddle.com:spilth/geekfor.git
  </code></pre>