开发者

Save history in git

开发者 https://www.devze.com 2023-02-26 03:33 出处:网络
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 ev

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

精彩评论

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

关注公众号