title: How do I fix the path of my local git repo after move?
body: <p>How do I fix the path of my local git repo after move?</p>
  
  <pre><code>previous local location: /C/website
  new local location: /C/Projects/website
  remote location: git@bitbucket.org:username/website.git
  </code></pre>
  
  <p>I moved my git repository from one folder <code>/website</code> to another <code>/projects/website</code> and now I get an error:</p>
  
  <pre><code>user@Thinkpad /C/Projects/website (master)
  $ git push
  fatal: 'C:/website' does not appear to be a git repository
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>Is there any way to fix this without having to re-clone the project?
  I tried:</p>
  
  <pre><code>$ git init
  Reinitialized existing Git repository in c:/Projects/website/.git/
  </code></pre>
  
  <p>It that did nothing and I got the exact same error again when I tried to push.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I ran: <code>git config remote.origin.url C:/Projects/website</code>. Now when I commit after changing files I get the following reply:</p>
  
  <pre><code>user@Thinkpad /C/Projects/website (master)
  $ git commit -m "added something"
  [master e163ad9] added something
   0 files changed
   create mode 100644 something
  
  user@Thinkpad /C/Projects/website (master)
  $ git push
  Everything up-to-date
  </code></pre>