Save history in git
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. 开发者_StackOverflow中文版I'v tried to (step by step):
- Clone the repo;
- Create new branch;
- Use a command git filter-branch to get my data from 'kp' folder;
- Push a new branch to a repo.
But there is no history. What I'm doing wrong?
I believe the answer you're looking for is here.
精彩评论