title: cloning git repository when folder and files already exist
body: <p>I was working on 2 computers, alternating which one I use, and every time moved the whole thing between them. Then I setup git on computer A and synced it with github repository. So far so good. </p>
  
  <p>Now I want to clone this to computer B, but git clone doesn't work because the folder and files already exist. </p>
  
  <p>So this is what I've done on computer B: </p>
  
  <pre><code>git init
  git remote add origin &lt;my-github-rep.git&gt;
  git fetch
  </code></pre>
  
  <p>Now I need to bring the latest files from github here. </p>
  
  <pre><code>git reset origin/master
  </code></pre>
  
  <p>I think this is what resets current HEAD to point to master branch on origin. </p>
  
  <p>Okay, now here is the problem: </p>
  
  <p>I would assume that at this point I need the following: </p>
  
  <pre><code>git checkout -t origin/master
  </code></pre>
  
  <p>Because this would bring all the latest files from origin and would have the whole thing checked out on computer B. This is what I want, but it doesn't work. Here is the error msg: "<strong>fatal: A branch named 'master' already exists.</strong>"</p>
  
  <p>How do I overcome this and just bring the files? What have I done wrong. </p>
  
  <p>(to clarify: I don't want just to delete the folder and the files and simply clone the repository because there are many more files in there which are not supposed to be on git, so it's hard to do pick and choose; at this point what I want is to overwrite all the relevant files in my local folders from the latest files in the remote repository - this way I'll have the latest code, and the files that are not tracked by git won't be affected)</p>