开发者

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):

  1. Clone the repo;
  2. Create new branch;
  3. Use a command git filter-branch to get my data from 'kp' folder;
  4. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜