I've cloned an existing project repository through github, which copied over all commit history and branches. I'd like to remove all commit history from the cloned project's master branch and keep the commit history from the branches I've been working with (see diagram). The project looks like this:
A [master]
\
B [branchDevelop] ________
\ \
C [branchFeature1] D [branchFeature2]
I've tried rebasing and squashing the commits in master but I keep running into merge conflicts. Also, if I delete .git and reinitialize a project I will loose my branches. How do I delete the commit history of master and retain the development branches and commits that I've been working on?