title: Save history in git
body: <p>Having problem with saving commits history. I have main branch called 'master'. In the root folder I have a directory named 'kp' and some other stuff, which I don't need anymore. I want to get everything in 'kp' folder out and put it to the root directory and save commits history of the files in a folder. I'v tried to (step by step):</p>
  
  <ol>
  <li>Clone the repo;</li>
  <li>Create new branch;</li>
  <li>Use a command  git filter-branch to get my data from 'kp' folder;</li>
  <li>Push a new branch to a repo.</li>
  </ol>
  
  <p>But there is no history. What I'm doing wrong?</p>