title: Copying commits from one git repo to another when a directory structure is different
body: <p>The following <a href="https://stackoverflow.com/questions/37471740/how-to-copy-commits-from-one-git-repo-to-another">topic</a> describes how to copy commits from the one git repo to another. I have the similiar case but the directory structure in repos is different:</p>
  
  <p>Simplified example:</p>
  
  <p>Copy from repo:
  src/file.cpp</p>
  
  <p>Copy to repo:
  src/logic/file.cpp</p>
  
  <p>How to copy commits in such case ?</p>