I have a project in repository 1 with commits A-B-C-D-E. I want to create a new repository (repository 2) with the same project but to simplify all the commits that were done, I would like to have repository 2 have commits B-E. Ie, I would like to create repository 2 starting from repository 1B. I would then update it in a single commit such that repository 2 would look like repository 1E (but would be done with a single commit). How can I copy repository 1B into a new repository (repository 2)?
Thanks in advance