title: Git checkout to specific directory
body: <p>So, currently I am working on merging two branches, <code>A</code> and <code>B</code>.</p>
  
  <p>I'm merging into branch <code>B</code>, but I had restructured the project into different directories and would like to do a <code>git checkout A --path/fileToGet</code> of sorts (to overwrite is the intention) but into a <strong>different directory in my branch</strong>. To keep revision history for the file, what would be the best thing, do I just checkout the file like normal, <code>rm</code> my current file and then <code>git mv</code> (or maybe just a regular <code>mv</code> and maybe git will follow` it? Or is there a better method to follow?</p>
  
  <p>I had found in some comments here at SO that when using <code>git diff A:path/file B:anotherPath/file</code> I am able to compare the two files, so I'm thinking there might be another way, using the <code>:</code> to specify from where, to where.</p>